Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 -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 -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
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?

share|improve this question
Not all that familiar with v3, but why are you providing the password twice, once with the -A option and once with the -X options. Does the community and OID work with snmp v2? (just to make it simple) – SpacemanSpiff Feb 15 '11 at 1:11
snmpv3 uses both an authentication key and a privacy password, mine just happen to be the same. Everything works with v2, but I'm trying to be more secure and use v3. – John Feb 15 '11 at 1:41
I just found out that check_snmp isn't propagating the entries to the snmpget command. I've edited the question with a clearer description of the problem. – John Feb 15 '11 at 1:43

Strange that it isn't passing all the arguments for you. Old version of nagios-plugins, perhaps?

Fortunately you can probably re-use something I just put together that solves a different problem. check_snmp doesn't obey your smnp.conf file.

I wrote a script that behaves similarly to check_snmp, and works with snmp v3, and uses the values in your snmp.conf file. Here is the synopsis:

And a direct link to the script:

Hope somebody finds this useful.

share|improve this answer
up vote 0 down vote accepted

I could never get check_snmp to work with version 3 SNMP. To fix my issue, I created my own plugin based off of the following sample for HP Printer SNMP checking:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.