[Nagiosplug-devel] [ nagiosplug-Bugs-3313190 ] check_snmp processes wrong numeric part of response

SourceForge.net noreply at sourceforge.net
Tue Jun 7 16:17:18 CEST 2011


Bugs item #3313190, was opened at 2011-06-07 14:17
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3313190&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: Parsing problem
Group: release-1.4.15
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: check_snmp processes wrong numeric part of response

Initial Comment:
check_snmp returns the first numeric part of the response, not necessarily the returned value, when a MIB is in use and leaf name includes digits.
Checked on Debian Squeeze i386 with packaged version, and trunk, same problem.  
libsnmp-base                       5.4.3~dfsg-2
$ ./check_snmp -V
check_snmp v1.4.15-24-g5ebe (nagios-plugins 1.4.15)
$ snmpwalk -v 1 -c readme 10.254.5.99 .1.3.6.1.4.1.12394.1.1.1.16.0 -m ALVARION-DOT11-WLAN-MIB
ALVARION-DOT11-WLAN-MIB::brzaccVLCurrentEthernetPortState.0 = INTEGER: fullDuplexAnd100Mbps(4)
$ ./check_snmp -H 10.254.5.99 -C readme -w 1 -c 2 -o .1.3.6.1.4.1.12394.1.1.1.16.0 -vvv
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 10.254.5.99:161 .1.3.6.1.4.1.12394.1.1.1.16.0
iso.3.6.1.4.1.12394.1.1.1.16.0 = INTEGER: 4
Processing oid 1 (line 1)
  oidname: iso.3.6.1.4.1.12394.1.1.1.16.0
  response:  = INTEGER: 4
SNMP CRITICAL - *4* | iso.3.6.1.4.1.12394.1.1.1.16.0=4
$ ./check_snmp -H 10.254.5.99 -C readme -w 1 -c 2 -o .1.3.6.1.4.1.12394.1.1.1.16.0 -m ALVARION-DOT11-WLAN-MIB -vvv
/usr/bin/snmpget -t 1 -r 5 -m ALVARION-DOT11-WLAN-MIB -v 1 [authpriv] 10.254.5.99:161 .1.3.6.1.4.1.12394.1.1.1.16.0
ALVARION-DOT11-WLAN-MIB::brzaccVLCurrentEthernetPortState.0 = INTEGER: fullDuplexAnd100Mbps(4)
Processing oid 1 (line 1)
  oidname: ALVARION-DOT11-WLAN-MIB::brzaccVLCurrentEthernetPortState.0
  response:  = INTEGER: fullDuplexAnd100Mbps(4)
SNMP CRITICAL - *100* | ALVARION-DOT11-WLAN-MIB::brzaccVLCurrentEthernetPortState.0=100

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

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




More information about the Devel mailing list