Subject: | Adherence to Nagios plug-in development guidelines for thresholds appears broken. |
If
http://nagiosplug.sourceforge.net/developer-guidelines.html#THRESHOLDFORMAT
is to be followed, it appears that Nagios::Plugin and
Nagios::Plugin::Threshold do not comply yet:
./check_snmp_monitored_mounts.pl -f -H XXXX -C YYYY -w 1 -c 2 -x
'^/proc' -vv -A PBURD1
check_snmp_monitored_mounts.pl OK - Number of unmonitored filesystems: 1
| num_unmonitored_fs=1;1;2;0;
./check_snmp_monitored_mounts.pl -f -H XXXX -C YYYY -w @1 -c @2 -x
'^/proc' -vv -A PBURD1
check_snmp_monitored_mounts.pl CRITICAL - Number of unmonitored
filesystems: 1 | num_unmonitored_fs=1;0;0;0;
As a side note, it seems like Nagios::Plugin::Perfdata would be a pretty
easy pitfall when it comes to parsing out the @, among other things.