Unfortunately the plugin doesn't comply with the developer guidelines for plugins regarding options (https://www.monitoring-plugins.org/doc/guidelines.html#AEN303) and thresholds (https://www.monitoring-plugins.org/doc/guidelines.html#AEN201).

The current value (936GB) is the only one allowed a UOM. Instead max has a UOM making the data invalid.

One solution might be to change the plugin:

- insert after line 49:
TOT=$(echo $TOTAL | tr -dc [0-9.])

- alter the occurrences of ...;0;${TOTAL}" to ...;0;${TOT}" in lines 56, 61, and 66 (the TOTAL values in the performance data).



Am 29.06.2018 um 14:12 schrieb basti:
Hallo,
I have icinga2 with pnp4nagios and get all performance data I need.
expect the one form sftp.

Plugin is this:
https://github.com/janvonde/check_sftpspace

and do this output:
sudo /usr/lib/nagios/plugins/ius/check_sftpspace -h <hostname> -u
<username> -w 10 -c 5

WARNING: 7% free disk space: 64.5GB from 1000GB
|sftp_disk_usage=936GB;10;5;0;1000GB

XML file "/usr/local/pnp4nagios/var/perfdata/<hostname>/BackupSpace.xml"
not found.

How can I get performance data?

Best Regards
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users


_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to