check_snmp Strangeness

Pulyankote, Gopinath Gopinath_Pulyankote at affymetrix.com
Thu Oct 31 00:57:56 CET 2002


It works for me..
 
bash-2.05a$ ../libexec/check_snmp -H msweb00 -o sysUpTime.0 -C public
SNMP OK - Timeticks: (62851802) 7 days, 6:35:18.02
bash-2.05a$


-----Original Message-----
From: Jeff Rendl [mailto:jeff.rendl at ifsna.com] 
Sent: Wednesday, October 30, 2002 2:57 PM
To: 'nagios-users at lists.sourceforge.net'
Subject: [Nagios-users] check_snmp Strangeness


My check_snmp appears to be sending the wrong command line to "snmpget".  I
test the command from the libexec dir with the following:
 
[root at blah libexec]# ./check_snmp -H 192.168.1.1 -o sysUpTime.0 -C public
 
and it replies with:
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -m ALL -v 1 192.168.1.1 public -c sysUpTime.0
 
Which is true because that command doesn't work with snmpget, the format
that works is:
 
snmpget -m ALL -v 1 192.168.1.1 -c public sysUpTime.0
 
If I modify the check_snmp request to:
 

[root at blah libexec]# ./check_snmp -H 192.168.1.1 -o sysUpTime.0 -C "-c
public"
 
It works.
 
Is there a way to change what check_snmp sends to snmpget?
 
Thanks,
Jeff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021030/dbfde8e5/attachment.html>


More information about the Users mailing list