check_snmp
Maarten Hartsuijker
maartenh at phreaker.net
Sat Apr 5 13:56:05 CEST 2003
First thing you have to do is to configure a checkcommand in your
checkcommands.cfg. The checkcommands configuration file, translates the
nagios checks to real-time unix commands.
An example could look like this:
# 'check_snmp_3_oid' command definition
define command{
command_name check_snmp_3_oid
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -c
$ARG2$ -o $ARG3$ -o $ARG4$ -C $ARG5$
}
After defining a check, you can start adding entries in your services.cfg
that make use of snmp. An example could be:
define service{
use generic-service ; Name of
servic
e template to use
host_name swtest
service_description snmp.port1
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups network-admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command
check_snmp_3_oid!ifOperStatus.101!1!ifDescr.101!ifOperStatus.101!comstring
}
good luck!
maarten
----- Original Message -----
From: "Jeyri Bautista" <jbautista at icnet.com.ve>
To: <nagios-users at lists.sourceforge.net>
Sent: Friday, April 04, 2003 9:15 PM
Subject: [Nagios-users] check_snmp
> Hi,
>
> I have configure Nagios for monitor my network, but I want to monitor the
> routers via snmp.
>
> What I have to do for configure that?
>
> In my hosts.cgi I have something like that for my host.
>
> # 'Router' host definition
> define host{
> use generic-host ; Name of host
> template $
> host_name router
> alias Router
> address 10.1.5.6
> check_command check-host-alive
> max_check_attempts 10
> notification_interval 120
> notification_period 24x7
> notification_options d,u,r
> }
>
> Thanks.
>
> Jeyri Bautista
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/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
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/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