Newbie question - check_snmp syntax

mrinal devadas mrinal at netapp.com
Fri May 16 01:02:47 CEST 2008


Hi all,
Am attempting to setup a Nagios server to accept SNMP traps from a NetApp
controller. Need help with the syntax to be used for check_snmp.

My commands.cfg file has,
define command{
        command_name    check_snmp
        command_line    $USER1$/check_snmp -H $ARG1$ -P 2c -L noAuthNoPriv
-d ! -m $ARG2$
        }

My netapp.cfg file has,
define service{
        use                     generic-service ; Inherit values from a
template
        host_name               gx3
        service_description     Uptime
        check_command           check_snmp!gx3!sysUpTime.0
        }

I get the following error message on Nagios,
Status Information:    SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m sysUpTime.0 -v 2c [authpriv] gx2:161

What am I doing wrong?


Thanks in advance,
Mrinal.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list