check_snmp fails to provide community string to shell

Thomas Guyot-Sionnest thomas at zango.com
Tue Feb 19 18:14:43 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Sommer wrote:
> Hi,
> 
> check_snmp appears to be broken, it nolonger sends the community string to
> the shell command.
> 
> Consider the following:
> 
> $ check_snmp  -H 127.0.0.1 -P 2c -C public
> SNMP problem - No data received from host
> CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 2c [authpriv] 127.0.0.1:161
> 
> No community is sent to the command, resulting in no data being returned
> from the host.
> 
> I believe I saw a commit a while ago, that was an attempt to mask out the
> community string in the output, perhaps this patch was a little too
> aggressive?

The patch works ok; if you add verbosity (-v) you will see the actual
command with community string sent.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHuw6D6dZ+Kt5BchYRAoTCAKC0DdAEcHEWCUkpGudj4o0TevpE/wCeKNAr
NpsOsbQoXUg1VPM/tqzaZu0=
=NzTV
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list