check_snmp Strangeness
Subhendu Ghosh
sghosh at sghosh.org
Thu Oct 31 05:50:49 CET 2002
What version of snmp and check_snmp.
net-snmp v5.x requires that the community string be precedded by the
option argument "-c" old versions of ucd-snmp (4.x) did not require it
and check_snmp did not support it.
the current check_snmp in CVS does.
-sg
On Wed, 30 Oct 2002, Jeff Rendl wrote:
> 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
>
--
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
More information about the Users
mailing list