[Nagiosplug-help] check_snmp with snmpv3

Meggie mladlow1 at swarthmore.edu
Fri Mar 20 18:02:45 CET 2009


Hi,

I've been trying to use nagios with snmp version 3. Unfortunately, it seems
that the check_snmp script formats the security level for version three
authentication incorrectly. All of these commands are run by the nagios
user. I also have all the authorization information saved in an snmp.conf
file readable by the nagios user

-----------------------

$ ./check_snmp -H hostname -o sysUpTime.0 -P 3 -L [authPriv] -v

yields:
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 (null) hostname sysUpTime.0

SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 [authpriv] hostname sysUpTime.0

-----------------------

(without seclevel specification): $ ./check_snmp -H hostname -o sysUpTime.0
-P 3 -v

yields:
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 -l noAuthNoPriv hostname  sysUpTime.0

SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 3 [authpriv] hostname sysUpTime.

-----------------------

But the command:

snmpget -t 1 -r 5 -m ALL -v 3 tamarind sysUpTime.0 -l authpriv

produces the proper output from snmpget.

-----------------------

Basically, I want to know why the brackets are added and how I can get rid
of them, or how I could make this command work.

Thank you,

-Meggie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090320/f18c06a8/attachment.html>


More information about the Help mailing list