jorgedlcruz / zimbra-net_snmp-extension

How to monitor a Zimbra Collaboration Environment using pflogsumm and NET-SNMP-EXTEND
GNU General Public License v2.0
12 stars 10 forks source link

Redundant argument in printf at line 1008 #3

Open tigre-bleu opened 4 years ago

tigre-bleu commented 4 years ago

Hello,

I try to implement a prometheus exporter using your perl script to generate a prom file with all the metrics. The idea is to run all the commands like snmp does, parse the output and build the metrics texte file.

However, the output is polluted by messages like Redundant argument in printf at ./zimbra_pflogsumm-prtg.pl line 1009, <> line 10561.

Full Command:

./zimbra_pflogsumm-prtg.pl line 1008, <> line 10561.
zimbra-stats connections=0
Redundant argument in printf at ./zimbra_pflogsumm-prtg.pl line 1009, <> line 10561.
zimbra-stats hosts_domains=0

My host is an up to date Ubuntu 16.04.6 LTS.

Note: It would be great if there was the option in zimbra_pflogsumm-prtg.pl to export all metrics in the prom format. I understand it is not the goal of the project but I don't think it would be too hard to implement. Unfortunately I don't know perl so I can't propose a PR.

tigre-bleu commented 4 years ago

Just for information or if anyone looks for the same functionality as me: I created a small python wrapper to export the data from zimbra_pflogsumm-prtg.pl to prometheus: https://git.tigre-bleu.net/antoine.vacher/zimbra_exporter/