check_snmp
Posted: Wed Aug 08, 2012 8:38 am
Hi all,
I've a problem using check_snmp.
This is the SNMP get result:
that means an alarm in the device (0 = OK, 1 = alarm)
This is the check_snmp shell result
that is ok, because "-r 0" option means that the Ok status is 0... 1 is a critical
The issue is in Nagios.
The command is: check_snmp!-C public -H $HOSTADDRESS$ -o .1.3.6.1.4.1.6247.32.1.5.5.0 -r 0
It seems not checking the option "-r 0"... i do not know why...
If I set the same Nagios configuration in a different server the behaviour is OK.
I've a problem using check_snmp.
This is the SNMP get result:
Code: Select all
# snmpget -v2c -cpublic xx.xx.xx.xx .1.3.6.1.4.1.6247.32.1.5.5.0
SNMPv2-SMI::enterprises.6247.32.1.5.5.0 = INTEGER: 1This is the check_snmp shell result
Code: Select all
# ./check_snmp -C public -H xx.xx.xx.xx -o .1.3.6.1.4.1.6247.32.1.5.5.0 -r 0
SNMP CRITICAL - *1* | iso.3.6.1.4.1.6247.32.1.5.5.0=1The issue is in Nagios.
The command is: check_snmp!-C public -H $HOSTADDRESS$ -o .1.3.6.1.4.1.6247.32.1.5.5.0 -r 0
Code: Select all
Status Information: SNMP OK - 1
Performance Data: iso.3.6.1.4.1.6247.32.1.5.5.0=1If I set the same Nagios configuration in a different server the behaviour is OK.