check_snmp - UPS

Richard Gliebe richard.gliebe at fhv.at
Tue Nov 22 07:06:39 CET 2005


On Mon, 2005-11-21 at 09:43 -0500, Subhendu Ghosh wrote:

Hi,

> "negate" is a plugin that will change the return code of a plugin.
> 
> with check_snmp - try -w 0:60 -c 0:80
> 
> you will get a warning above 60 and critical above 80

Sorry, but it returns also an critical alert:

# ./negate /usr/local/libexec/nagios/check_snmp -H ups.company.com \
-C <Community> -o <OID> -w 0:60 -c 0:80
SNMP CRITICAL - *100*

What I want is, when the return value is below 100 (warning: 80 /
critical: 60) I want to get an alert.

thanks
Richard

> On Mon, 21 Nov 2005, Richard Gliebe wrote:
> 
> > Hi,
> >
> > I have to monitor our Master-UPS via 'check_snmp'.
> >
> > I want to get an alert, when the capacity goes under 80 % like this.
> >
> > [...]
> > # ./check_snmp -H ups.company.com -C uclvNOC-ro -o .<OID> \
> > -l "BATTERY (%)" -w 80 -c 60
> > [...]
> >
> > But when the retournvalue is 100 (%), I've get an critital alert.
> >
> > ## BATTERY (%) CRITICAL - *100* service alert.##
> >
> > Is it possible define reverse values in check_snmp ?
> >
> > thanks in advance.
> >
> > Richard
> >
> >
> 
-- 
Richard Gliebe
Fachhochschule Vorarlberg GmbH / University for Applied Science
Information Services



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&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