how to check snmp negative value i.e. less than 10% is critical.

Nicholas Magers Nicholas.Magers at lands.nsw.gov.au
Mon Dec 17 05:32:41 CET 2007


I want to check UPS battery level available percentage and report on
when 20% and 10% is remaining. The check outlined below shows the
percentage. What I want to do is the reverse of the -w -c and critical
values so that -w is 20 % remaining and -c is 10% remaining.

 

define service{

            use                               generic_service_template

            host_name                    env-qs-ups01

            service_description         Battery Charge Perentage

            check_command
check_snmp!1.3.6.1.4.1.476.1.42.3.5.1.19.0!'Battery Charge Percntage is
% '

            }

 

define command{

command_name            check_snmp_crit

command_line               USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$
-l $ARG2$ -c $ARG3$  

}

 

Any advice would be appreciated.


***************************************************************
This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. 

Views expressed in this message are those of the individual sender, and are not necessarily the views of the Department of  Lands.

This email message has been swept by MIMEsweeper for the presence of computer viruses.
***************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071217/810fc191/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
-------------- next part --------------
_______________________________________________
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