Hi <span class="gmail_quote">Dumitru,</span><br><br><div><span class="gmail_quote">2005/12/24, Dumitru Negara &lt;<a href="mailto:dumitru@itcnetworks.ro">dumitru@itcnetworks.ro</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I didn't found an answer for my question in NUT documentation/FAQ or<br>this mailing list archive so I'm posting it here.<br><br>I want to start a timer only if both of my UPSes remain on battery. Not<br>just one, both.
<br><br>My UPSes are:<br>- ups1@host-a<br>- ups2@host-b<br><br>Is it possible to use something like this in upssched.conf?<br><br>AT ONBATT ups1.* &amp;&amp; ups2.* START-TIMER onbattwarn 180</blockquote><div><br>
no, it's not possible that way. <br>
</div>The only possible way for the moment is to do it manually, ie:<br>
- trigger a timer for both UPSs,<br>
- create a flag when the first one is reached,<br>
- test in the second, when called, if the first flag exists...<br></div><br>Note that there is is task logged in docs/ideas.txt about that (&quot;Monitor program with interpreted language&quot;)<br clear="all"><br>
Arnaud<br>-- <br>Linux / Unix Expert - MGE UPS SYSTEMS - R&amp;D Dpt<br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://people.debian.org/~aquette/">
http://people.debian.org/~aquette/</a><br>OpenSource Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a>