check_snmp with snmpv3 protocol giving "Unkown Report message" error
Posted
by
John
on Server Fault
See other posts from Server Fault
or by John
Published on 2011-02-15T00:43:58Z
Indexed on
2011/11/19
1:54 UTC
Read the original article
Hit count: 461
I'm trying to add a nagios command to use snmpv3 for monitoring printer status messages. When using the check_snmp command, I get the following error:
External command error: snmpget: Unknown Report message
Here is the command I'm typing in:
./check_snmp -P 3 -H <hostname> -L authPriv -U snmpuser -A snmppassword -X snmppassword -o 1.3.6.1.4.1.11.2.4.3.1.2.0 -C public -d "STRING:" -a MD5
These values for auth key, private key, username, etc all work when using snmpwalk. Can someone enlighten me as to what that error message really means?
EDIT: It looks like check_snmp isn't taking my v3 credentials when passing over to snmpget. Here is my input with the verbose option:
./check_snmp -H <hostname> -o 1.3.6.1.2.1.2.2.1.10.1 -C public -m ALL -P 3 -L authPriv -U snmpuser -a MD5 -A snmppassword -x DES -X snmppassword -v
And here is the output:
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 [authpriv] <hostname>:161 1.3.6.1.2.1.2.2.1.10.1
External command error: snmpget: Unknown Report message
So I guess now my question would be: why isn't check_snmp passing all the commandline options to snmpget?
© Server Fault or respective owner