[Nagiosplug-help] check_snmp - has problem parsing snmpget output ?

Thomas Guyot-Sionnest dermoth at aei.ca
Tue Nov 24 06:04:02 CET 2009


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

On 20/11/09 03:48 AM, Ernest Beinrohr wrote:
> Hi, I have a command like:
> 
> $ check_snmp -P 3 -U username -A password -X password -a MD5 -H
> server.domain.com -o host.hrSystem.hrSystemProcesses.0 -L authPriv  -v
> /usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 -l authPriv -a MD5 -u username -A
> password -x DES -X password  server.domain.com:161 
> host.hrSystem.hrSystemProcesses.0
> HOST-RESOURCES-MIB::hrSystemProcesses.0 98
> 
> SNMP problem - No data received from host
> CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 [authpriv]
> server.domain.com:161  host.hrSystem.hrSystemProcesses.0
> 
> 
> as you can see snmpget RETURNS a value of 98, but check_snmp fails to
> see it somehow. Am I doing something wrong?

Your snmpget output don't look right, is looks like is you had the -Oq
option on the command line.

Do you have any special option in your snmp.conf (not snmpd.conf...)? If
you have "quickPrinting" set then that explains it, otherwise post the
content of this file (less any sensitive information if present).

Thanks

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

iD8DBQFLC2lC6dZ+Kt5BchYRAtNtAKDgXFc2Iz6R4mKUXfKSf3GV3JcLvQCgxtVl
2MvI1nratqhoSuY85jEgzTc=
=SPu0
-----END PGP SIGNATURE-----




More information about the Help mailing list