check_snmp swap on solaris always returns error
Posted: Wed Dec 09, 2015 7:51 am
I cannot set the range correct so that I don't get an error. It seems always to check for something greater than the numbers I give it. To wit:
[nagios@nap11rh6it04 ~]$ /usr/local/nagios/libexec/check_snmp -H arsenic --invert-search -vo .1.3.6.1.4.1.2021.4.4.0 -w 0,2
/usr/bin/snmpget -Le -t 1 -r 5 -m '' -v 1 [authpriv] arsenic:161 .1.3.6.1.4.1.2021.4.4.0
iso.3.6.1.4.1.2021.4.4.0 = INTEGER: 2106424
SNMP WARNING - *2106424* | iso.3.6.1.4.1.2021.4.4.0=2106424;0;;
[nagios@nap11rh6it04 ~]$ /usr/local/nagios/libexec/check_snmp -H arsenic --invert-search -vo .1.3.6.1.4.1.2021.4.4.0 -w 0,2
/usr/bin/snmpget -Le -t 1 -r 5 -m '' -v 1 [authpriv] arsenic:161 .1.3.6.1.4.1.2021.4.4.0
iso.3.6.1.4.1.2021.4.4.0 = INTEGER: 2106424
SNMP WARNING - *2106424* | iso.3.6.1.4.1.2021.4.4.0=2106424;0;;