snmp for monitor routers Extending Question

Eduardo Moura eduardo.moura at telway.com.br
Thu Sep 9 12:04:45 CEST 2004


Does anyone have a example of check_snmp being used to monitor crc errors in
a wan interface?

Best Rgds

Eduardo Moura
Telway Tecnologia

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Tedman Eng
Sent: quinta-feira, 9 de setembro de 2004 05:03
To: nagios-users at lists.sourceforge.net
Cc: 'tkraft8 at comcast.net'
Subject: RE: [Nagios-users] snmp for monitor routers

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




-------------------------------------------------------
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