check_snmp options not getting passed to snmpget

Kyle Tucker kylet at panix.com
Thu Jan 19 19:10:36 CET 2006


Hi,
	I have compiled the check_snmp plugin from the 
nagios-plugins-1.4.2 source code against Net-SNMP 5.2.2.
All of the options I pass to check_snmp don't get passed
along to snmpget, yet they're in the source code. Any 
clue what's up? Here's successful use of snmpget and what
gets passed from check_snmp. 

# snmpget.sh dskPercent.3                    
+ snmpget -l AuthPriv -n  -u ktucker -A 12345678 -X abcdefgh 
-x DES -a MD5 -c whatever olclient1.opslab.ma.msc dskPercent.3
UCD-SNMP-MIB::dskPercent.3 = INTEGER: 6

# sh /usr/local/scripts/cs.sh -m UCD-SNMP-MIB
+ /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 
-C whatever -o dskPercent.3 -w 80 -c 90 -L AuthPriv -U whoever
-a MD5 -A 12345678 -X abcdefgh -m UCD-SNMP-MIB 

SNMP problem - No data received from host
CMD: /usr/local/bin/snmpget -t 3 -r 5 -m UCD-SNMP-MIB -v 3 (NULL) 192.168.16.11:161  dskPercent.3

Some options/args get passed and others are ignored. And I can't 
for the life of me find where this (NULL) is coming from after 
the version option. This is Nagios 2.0b5 on Solaris 8.

Thanks.

-- 
- Kyle 
---------------------------------------------
kylet at panix.com   http://www.panix.com/~kylet    
---------------------------------------------


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list