SNMP, Dell Hardware

Matthew Joyce MJoyce at ccia.unsw.edu.au
Mon Mar 13 04:59:07 CET 2006


> -----Original Message-----
> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] 
> Sent: Monday, 13 March 2006 2:41 PM
> To: Matthew Joyce
> Cc: Nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] SNMP, Dell Hardware
> 
> On Mon, 13 Mar 2006, Matthew Joyce wrote:
> 
> >
> > Hi All
> >
> > I'm using Nagios (on Debian Sarge) to monitor our servers and I'm 
> > having difficulties getting chack_snmp to work.
> >
> > If I use the command `snmpget -v1 -m /root/DELL_10892.mib -c public 
> > myserver powerSupplyStatus.1.1` I get the result : 
> > MIB-Dell-10892::powerSupplyStatus.1.1 = INTEGER:
> > ok(3)
> >
> > I'm pretty happy with that, but I need check_snmp to report back to 
> > nagios.
> >
> >> From the MIB I can see the following...
> >
> > DellStatus                  ::= INTEGER {
> >    other(1),               -- the status of the object is not one of
> > the following:
> >    unknown(2),             -- the status of the object is unknown
> >                            --  (not known or monitored)
> >    ok(3),                  -- the status of the object is ok
> >    nonCritical(4),         -- the status of the object is warning,
> > non-critical
> >    critical(5),            -- the status of the object is critical
> > (failure)
> >    nonRecoverable(6)       -- the status of the object is
> > non-recoverable (dead)
> > }
> >
> > So for Nagios I expected the following to work...
> >
> > `./check_snmp -C public -H myserver -o 
> powerSupplyStatus.1.1 -w 4 -c 
> > 5:6` results : SNMP CRITICAL - *3*
> >
> > Have I misunderstood how the warning and critical thresholds work ?
> > Can anyone help ?
> >
> > I feel I'm close, if I can crack this I'll be set.
> >
> > thanks
> >
> 
> which version of plugins?
> 
> you may want to use "-w 4:6 -c 5:6" (-c will override -w)
> 
> 
> --
> -sg
> 

I tried that, and many other permutations, but I always get either SNMP
WARNING or CRITICAL.
plugins Verion 1.4

I think I may have to write a wrapper around snmpget.

mj




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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