check_snmp

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.
Locked
mrninni
Posts: 27
Joined: Tue Sep 27, 2011 8:35 am

check_snmp

Post 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.
mrninni
Posts: 27
Joined: Tue Sep 27, 2011 8:35 am

Re: check_snmp

Post by mrninni »

Solved... I used two different check_snmp versions.

Regards
Locked