Re: [Nagios-devel] check_snmp fails to provide community string to

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] check_snmp fails to provide community string to

Post by Guest »

-----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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked