check_snmp - UPS
Richard Gliebe
richard.gliebe at fhv.at
Wed Nov 23 08:11:05 CET 2005
On Tue, 2005-11-22 at 19:26 -0500, Subhendu Ghosh wrote:
Hi there,
> >> # ./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.
> >
> > I think I got it ;-)
> >
> > # /usr/local/libexec/nagios/check_snmp -H ups.company.com \
> > -C <Community> -o <OID> -w 99:80 -c 99:60 -l "Battery Status (%)"
> > Battery Status (%) OK - 100
> >
> > Is this the right syntacs ?
> Depends. The above will only give you a critical between 99% and 60%, an
> ok below 60%
>
> max:min - non-ok within range
> min:max - ok within range.
I hope this will be OK now:
# /usr/local/libexec/nagios/check_snmp -H ups.company.com \
C <Community> -o <OID> -w 99:80 -c 79:0 -l "Battery Status (%)"
Battery Status (%) OK - 100
Thanks for some positive replies ;-)
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