[Nagiosplug-devel] [ nagiosplug-Bugs-3109810 ] check_snmp not processing command line flags correctly

SourceForge.net noreply at sourceforge.net
Tue Dec 21 07:12:11 CET 2010


Bugs item #3109810, was opened at 2010-11-15 17:18
Message generated for change (Comment added) made by dermoth
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3109810&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: Argument proccessing
Group: None
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Carl Forsythe (cforsythe)
>Assigned to: Thomas Guyot-Sionnest (dermoth)
Summary: check_snmp not processing command line flags correctly

Initial Comment:
Output of current plugin:
./check_snmp -V: check_snmp v1.4.15 (nagios-plugins 1.4.15) 

OS: CentOS 5.5 x86_64
Kernel: 2.6.18-194.11.4.el5

The check being run:
./check_snmp -H 192.168.100.204 -vvvv -P 2c -C ########## -o NS-ROOT-MIB::serverState.5.119.119.119.49.49 -R up

/usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] 192.168.100.204:161 NS-ROOT-MIB::serverState.5.119.119.119.49.49
NS-ROOT-MIB::serverState."www11" = INTEGER: outOfService(4)
Processing oid 1 (line 1)
  oidname: NS-ROOT-MIB::serverState."www11"
  response:  = INTEGER: outOfService(4)
SNMP OK - 4 | NS-ROOT-MIB::serverState."www11"=4 

It doesn't matter what I put after the -R, if I put up, down, left, right, green, blue etc. it always returns ok.

Version:  check_snmp v1859 (nagios-plugins 1.4.11)
Works as expected, it was only after an update to the nagios plugins that the check_snmp plugin stopped working. 

Net-SNMP did not change.








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

Comment By: Thomas Guyot-Sionnest (dermoth)
Date: 2010-12-21 01:12

Message:
Thanks for your bug report

I believe the problem you describe here has already been fixed in the
development trunk. Please try a recent snapshot such as:
http://nagiosplug.sourceforge.net/snapshot/nagios-plugins-master.tar.gz

I'm marking this bug as pending in the mean time; it will close
automatically after a week or so.

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

Comment By: Ryan Steinmetz (rpsfa)
Date: 2010-12-19 15:20

Message:
This problem does not exist in 1.4.14 and appears to have been introduced
in the 1.4.15 release.

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

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




More information about the Devel mailing list