Cisco check_snmp issue

Subhendu Ghosh sghosh at sghosh.org
Mon Dec 16 22:48:17 CET 2002


take a look at Cisco's supportlist for a list of MIBs suppoerted by 
platform and IOS release (ftp.cisco.com/pub/mibs/supportlists/)

-sg

On Thu, 12 Dec 2002, Jeremy T. Bouse wrote:

> 	Yeah using the beta2 CVS version of the plugins I was able to
> check this no problem using check_snmp... However I did find it depends
> on the router version you're checking... In my case I had a 7206VXR that
> had it but a 4700 that did not... The 4700 didn't know of any MIB values
> for .1.3.6.1.4.1.9.9.13 even as I tried a snmpwalk...
> 
> 	Jeremy
> 
> On Thu, Dec 12, 2002 at 02:51:26PM -0500, Subhendu Ghosh wrote:
> > try the 1.3beta2 plugins - major changes in check_snmp.
> > 
> > -sg
> > 
> > On Tue, 10 Dec 2002, Robin Brown wrote:
> > 
> > > Hello all,
> > > 
> > > I am trying to use Nagios v1.0 to check the temperature readings on a
> > > Cisco router using the check_snmp plugin from the nagiosplug-1.3-beta1.
> > > I can only get it to work by leaving off the warning and critical
> > > options, of course I can't alert unless I can specify what to alert on.
> > > I get the "Return code 138 is out of bounds" error when run from within
> > > Nagios and a bus error when using them on the command line.
> > > 
> > > Interestingly enough, I am using the same plugin to check on the router
> > > power supply status with a warning/critical flag and that operates
> > > normally.  Of course the number returned from that check is either a 1
> > > or 2 for on or off.  The temperature checks return 2-digit numbers, I'm
> > > not sure if this is the issue or not.
> > > 
> > > Below are the checkcommands.cfg and services.cfg entries:
> > > 
> > > checkcommands.cfg:
> > > 
> > > # 'check_snmp' generic command definition
> > > define command{
> > >         command_name    check_snmp
> > >         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w
> > > $ARG2$ -c $ARG3$ -C $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$
> > >         }
> > > 
> > > 
> > > # Check Cisco stuff
> > > # Working check for power supply status
> > > define command{
> > >         command_name    check_cisco
> > >         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w
> > > $ARG2$ -c $ARG3$ -C $ARG4$
> > >         }
> > > # Working for temperature readings without the warning critical options
> > > define command{
> > >         command_name    check_cisco_temp
> > >         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C
> > > $ARG2$
> > >         }
> > > 
> > > # Not working for temperature readings with the warning critical options
> > > define command{
> > >         command_name    check_cisco_temp
> > >         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C
> > > $ARG2$ -w $ARG3$ -c $ARG4$
> > >         }
> > > 
> > > 
> > > Services.cfg:
> > > 
> > > # Working check for power supply status
> > > define service{
> > >         use                             generic-service
> > >         host_name                       router-1
> > >         service_description             PWR2
> > >         contact_groups                  router-admins
> > >         notification_options            w,c
> > >         check_command
> > > check_cisco!.1.3.6.1.4.1.9.9.13.1.5.1.3.2!2!2!comstring
> > >         }
> > > # This only works without the warning and critical flags
> > > # Check Cisco Temperature limits
> > > define service{
> > >         use                             generic-service
> > >         host_name                       router-1
> > >         service_description             Temp-inlet
> > >         contact_groups                  router-admins
> > >         notification_options            w,c
> > >         check_command
> > > check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring
> > >         }
> > > 
> > > # This will not work using the warning and critical flags
> > > # Check Cisco Temperature limits
> > > define service{
> > >         use                             generic-service
> > >         host_name                       router-1
> > >         service_description             Temp-inlet
> > >         contact_groups                  router-admins
> > >         notification_options            w,c
> > >         check_command
> > > check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring!35!45
> > >         }
> > > 
> > > Thanks and regards,
> > > Robin
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > 
> > 
> > -- 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:
> > With Great Power, Comes Great Responsibility 
> > Learn to use your power at OSDN's High Performance Computing Channel
> > http://hpc.devchannel.org/
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/




More information about the Users mailing list