Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ladies and gentlemen, need to do the check_snmp the nagios return critical and negative numbers .
As follows , Nagios runs the plugin if the return is greater than -70 , for example -71 it alarms critical .
code:
/usr/local/nagios/libexec/check_snmp -H 10.255.255.131 -C public -o .1.3.6.1.4.1.14988.1.1.1.2.1.13.76.94.12.131.149.185.9 -c -78,-79
Can you try this patch and see if it helps you? If it does maybe I'll talk to the developers about getting it in and doing a minor revision of plugins package.
I had a similar problem and found some solution. I am running Nagios XI 5.4.4
I wanted to read optical transmit and received power (negative values in dBm), with these tresholds: warning from -60 to -70 critical from -70 to -00 (negative indefinitely).
I formed my command like this: $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C public -w -60: -c -70:
This way, Nagios successfully processed negative values.