[ nagiosplug-Bugs-3586201 ] Nagios check_snmp not displaying enumeration values

SourceForge.net <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <[email protected]>
Bugs item #3586201, was opened at 2012-11-11 04:27
Message generated for change (Tracker Item Submitted) made by tomwong321456
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3586201&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: tom_wong (tomwong321456)
Assigned to: Nobody/Anonymous (nobody)
Summary: Nagios check_snmp not displaying enumeration values

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3586201&group_id=29880

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.