Nagios check_snmp not displaying enumeration values

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tom_wong
Posts: 37
Joined: Thu Oct 25, 2012 9:13 am

Nagios check_snmp not displaying enumeration values

Post by tom_wong »

Hi, when I create a service to check_snmp values, if the snmp agent returns a enumeration value with the following declaration

rttState OBJECT-TYPE
SYNTAX INTEGER {
unknown(0),
running(1),
stopped(2)
}
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The currently configured status of an instance."
::= { rttEntry 3 }

if the command doesn't include a warning or critical threshold,

./check_snmp -p 161 -H 10.36.0.50 -o enterprises.40312.1.1.1.3.1 -C public -P 2c -l "rttState-Instance1" -m /usr/share/snmp/mibs/RTT-MIB.txt

the check_snmp command returns
rttState-Instance1 OK - running(1) |

However, if the warning or critical threshold is declared, such as

./check_snmp -p 161 -H 10.36.0.50 -o enterprises.40312.1.1.1.3.1 -C public -P 2c -l "rttState-Instance1" -m /usr/share/snmp/mibs/RTT-MIB.txt -w 1:2

it would return

rttState-Instance1 OK - 1 | RTT-MIB::rttState.1=1

It doesn't display the enumerated value.

Tom
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios check_snmp not displaying enumeration values

Post by scottwilkerson »

I have confirmed this behavior but I do not know for positive if this is expected behavior or not.

Please feel free to report a bug on the Nagios Plugins bug tracker

Code: Select all

http://sourceforge.net/tracker/?group_id=29880&atid=397597
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tom_wong
Posts: 37
Joined: Thu Oct 25, 2012 9:13 am

Re: Nagios check_snmp not displaying enumeration values

Post by tom_wong »

Thanks Scott, I have post the bug, 3586201

Thanks
Locked