Page 1 of 1

check_snmp

Posted: Wed Aug 08, 2012 8:38 am
by mrninni
Hi all,

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: 1
that means an alarm in the device (0 = OK, 1 = alarm)


This 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=1
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

Code: Select all

Status Information:	SNMP OK - 1
Performance Data:	iso.3.6.1.4.1.6247.32.1.5.5.0=1
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.

Re: check_snmp

Posted: Wed Aug 08, 2012 9:21 am
by mrninni
Solved... I used two different check_snmp versions.

Regards