[Nagiosplug-help] Help required on setting up check_snmp with nagios

Andreas Ericsson ae at op5.se
Sun Oct 14 23:05:56 CEST 2007


Madan Thapa wrote:
> Hello,
> 
> 
> Please advise the syntax with example on how to define check_snmp service in
> windows.cfg
> 
> 
> 
> Additional details
> ###################################
> 
> 1)  commad structure in commands.cfg for check_snmp
> 
> # 'check_snmp' command definition
> define command{
>         command_name    check_snmp
>         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
>         }
> 
> 
> 
> 2) Manual check_snmp was successful from shell
> 
> [root at monitor libexec]#  ./check_snmp -H X.X.X.X -C public -o
> .1.3.6.1.4.1.77.1.2.19.0 -u 'Server Users'
> SNMP OK - 0 Server Users
> [root at monitor libexec]#
> [root at monitor libexec]#
> 
> where X.X.X.X = windows server
> 
> 
> 3) Please advise on this
> 
> #Monitoring SNMP
> ################
> define service{
>         use             generic-service         ; Inherit default values
> from a template
>         host_name              Win_Srv
>         service_description     check_snmp
>         check_command   check_snmp ( WHAT SHOULD BE HERE ?)

check_command check_snmp ( THAT DEPENDS ON WHAT YOU WANT TO CHECK )

Seriously though. Read the documentation and the example command definitions.
I'm sure it'll come to you before long.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231




More information about the Help mailing list