On Tue, 2005-11-22 at 07:06 +0100, Richard Gliebe wrote: > 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.
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 ? thanks 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 [email protected] 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
