snmp for monitor routers
Tedman Eng
teng at dataway.com
Thu Sep 9 10:02:49 CEST 2004
Consider the check_ifstatus.pl, check_bgpstate.plm and checkciscotemp.pl
plugins, which are basically check_snmp in a perl chocolate candy shell.
If you prefer to roll your own,
here's some OIDs to try:
OID cpu1min .1.3.6.1.4.1.9.2.1.57.0
OID cpu5min .1.3.6.1.4.1.9.2.1.58.0
OID tempInlet .1.3.6.1.4.1.9.9.13.1.3.1.3.1
OID tempOutlet .1.3.6.1.4.1.9.9.13.1.3.1.3.3
OID tempState .1.3.6.1.4.1.9.9.13.1.3.1.6.1
OID mem5minUsed .1.3.6.1.4.1.9.9.48.1.1.1.5.1
OID mem5minFree .1.3.6.1.4.1.9.9.48.1.1.1.6.1
OID IfAdminStatus = '1.3.6.1.2.1.2.2.1.7
OID IfDescr = '1.3.6.1.2.1.2.2.1.2
OID IfOperStatus = '1.3.6.1.2.1.2.2.1.8
OID IfName = '1.3.6.1.2.1.31.1.1.1.1
OID IfAlias = '1.3.6.1.2.1.31.1.1.1.18
OID LocIfDescr = '1.3.6.1.4.1.9.2.2.1.1.28
OID IfType = '1.3.6.1.2.1.2.2.1.3
Example:
Here I monitor the temperature inside the router. If the temperature gets
too high, then there are problems (and possibly a non funtioning air
conditioner!).
command_name check_snmp_rtr_temp
command_line $USER1$/check_snmp -l "Outlet Temp" -H $HOSTADDRESS$ -p 161
-C community -o .1.3.6.1.4.1.9.9.13.1.3.1.3.3 -w 40 -c 50
You can pass arguments by using something like this:
check_command check_snmp_interface_status!1
command_line $USER1$/check_snmp -o .1.3.6.1.2.1.2.2.1.8.$ARG1$
There's many more depending on model of router. Check your router's
management guide for available SNMP OID's or MIBs. Here I use OID numbers,
but you can use the MIB name so long as you have the MIBs loaded to do the
translation.
Refer to "check_snmp --help" for usage info.
For more detailed router trending, consider MRTG or RRDtool. Nagios is good
at monitoring binary states (ie UP or DOWN), RRDtool is good for measuring
trends (ie average bandwidth used, interface error count, etc). There are
various projects that integrate the two as well.
-----Original Message-----
From: tkraft8 at comcast.net [mailto:tkraft8 at comcast.net]
Sent: Wednesday, September 08, 2004 4:55 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] snmp for monitor routers
Dose anyone have example of check with snmp for cisco routers. I am trying
to monitor my router with nagios. I want to do more then just monitor with
a check_ping.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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