This is the code I am using to check it.<br><br><br>define command{<br>     command_name    snmp_ups_capa<br>     command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -l 'Adv. Battery Capacity' -u '%'<br>
  }<br><br><br>So what I would like to do is this<br><br><br>define command{<br>     command_name    snmp_ups_capa<br>     command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -w 90 -c 80 -l 'Adv. Battery Capacity' -u '%'<br>
  }<br><br>Except when it's below 90 and 80.  I would like to try to get this to work first.  Then I can think about install apcupsd.<br><br>Thanks<br><br><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 10:15 AM, John Antram <span dir="ltr"><<a href="mailto:rewt@dvdmenus.net">rewt@dvdmenus.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


  

<div bgcolor="#ffffff" text="#000000">
Jeremy, if you already have apcupsd ( <a href="http://www.apcupsd.com" target="_blank">www.apcupsd.com</a> ) installed on
the target "ups hosts" you can use check_apcupsd (
<a href="http://exchange.nagios.org/directory/Plugins/Hardware/UPS/APC/check_apcupsd/details" target="_blank">http://exchange.nagios.org/directory/Plugins/Hardware/UPS/APC/check_apcupsd/details</a>
)<br>
<br>
I have a good many ups units deployed to workstations and keep an eye
on them with nagios through this plugin. It is a bash script however,
so it won't work if your nagios system is windows. I have extended the
code to report several other variables as well, it is easy to do.<br>
<br>
John Antram<br>
Subatomic Digital<br>
Essex Junction Vermont, 05452<br>
<a href="mailto:rewt@dvdmenus.net" target="_blank">rewt@dvdmenus.net</a><div><div></div><div class="h5"><br>
<br>
<br>
On 7/28/2010 8:51 AM, Jeremy Gibbs wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">
  <div class="gmail_quote">I have many UPS systems.  I would like to
warn when the battery gets below 90% and go critical when it goes below
80%.  Is there a way to do this?
  <div><br>
  </div>
  <div>Thanks<br>
  <div><br>
  <br>
  </div>
  </div>
  </div>
-- <br>
Jeremy L. Gibbs<br>
Systems Administrator<br>
Utica College<br>
Integrated Information Technology Services<br>
(315) 223-2383<br>
  <br>
  </div></div><pre><fieldset></fieldset>
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
<div class="im"><a href="http://ad.doubleclick.net/clk;226879339;13503038;l" target="_blank">http://ad.doubleclick.net/clk;226879339;13503038;l</a>?
<a href="http://clk.atdmt.com/CRS/go/247765532/direct/01/" target="_blank">http://clk.atdmt.com/CRS/go/247765532/direct/01/</a></div></pre><div class="im">
  <pre><fieldset></fieldset>
_______________________________________________
Nagios-users mailing list
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null</pre>
</div></blockquote>
<br>
</div>

<br>------------------------------------------------------------------------------<br>
The Palm PDK Hot Apps Program offers developers who use the<br>
Plug-In Development Kit to bring their C/C++ apps to Palm for a share<br>
of $1 Million in cash or HP Products. Visit us here for more details:<br>
<a href="http://p.sf.net/sfu/dev2dev-palm" target="_blank">http://p.sf.net/sfu/dev2dev-palm</a><br>
<br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeremy L. Gibbs<br>Systems Administrator<br>Utica College<br>Integrated Information Technology Services<br>(315) 223-2383<br><br>