<div dir="ltr">Great Douglas!!!<div><br></div><div style>Thank you too much.</div><div style><br></div><div style>I will try it on next week.</div><div style><br></div><div style>Best regards.</div><div style><br></div><div style>

Daniel</div></div><div class="gmail_extra"><br clear="all"><div><div>--</div><div>Daniel Lopes de Carvalho</div><div><a href="mailto:dlcarvalho@gmail.com" target="_blank">dlcarvalho@gmail.com</a></div><div>19 9357-5618 (claro)<br>

</div>
<div>19 8251-6023 (tim)<br></div></div>
<br><br><div class="gmail_quote">On Sat, Mar 16, 2013 at 3:07 AM, Douglas Parsons <span dir="ltr"><<a href="mailto:doug@parsonsemail.com" target="_blank">doug@parsonsemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p>Daniel,</p>
<p>Yes this can be done with some manipulation of the minsupplies setting and the monitor settings.</p>
<p>The LDAP servers would monitor themselves as normal and shut down as normal.</p>
<p>The NFS server would get a weird config. It would monitor its own UPS as well as the UPS on each LDAP server.<br>
Set the monitor command for the NFS to have 3 supplies. (Yeah you are lying to the system). <br>
Set the monitor statement on the NFS server for the LDAP servers  to have 2 supplies each. Then set your minsupplies to 5.</p>
<p>In effect you have told the NFS server it has seven power supplies and it needs 5 to run. If the NFS UPS goes down the number drops to 4 (less than 5) so the system starts to shutdown. If only one of either of the LDAP servers goes down you are still at 5 so NFS stays up. If both go down you are at 3 so less than 5 then shutdown.</p>



<p>The NFS can look at the UPS monitored on itself as well as look at the UPS on other boxes at the same time those boxes are monitoring themselves.</p>
<p>Check out <br>
<a href="http://www.networkupstools.org/docs/man/upsmon.conf.html" target="_blank">http://www.networkupstools.org/docs/man/upsmon.conf.html</a></p>
<p>And</p>
<p> <a href="http://www.networkupstools.org/docs/man/upsmon.html" target="_blank">http://www.networkupstools.org/docs/man/upsmon.html</a></p>
<p>For command details.</p>
<p>There are also some timer settings that should allow you to shut down the NFS server before the LDAP servers go down.</p>
<p>Doug </p>
<div class="gmail_quote"><div><div class="h5">On Mar 16, 2013 12:25 AM, "Daniel Lopes de Carvalho" <<a href="mailto:dlcarvalho@gmail.com" target="_blank">dlcarvalho@gmail.com</a>> wrote:<br type="attribution">

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">Hello, 
<div><br></div><div>I would like to know if it is possible to use NUT to monitor more than one UPS and shutdown the computer only when the battery of the last alive UPS gets low? </div><div><br></div><div>

I have a file server that relies on two other LDAP servers (each with its UPS) and I would like to shutdown the file server when its UPS battery gets low or when the battery of the other two UPS (LDAP servers) gets low too.<br>




</div><div><br></div><div><div>Scenario:</div><div><br></div><div>1 - If UPS01 battery low, shutdown LDAP1 and keep LDAP2 and NFS alive.</div><div>2 - If UPS02 battery low, shutdown LDAP2 and keep LDAP1 and NFS alive.</div>




<div>3 - If UPS03 battery low, shutdown NFS.</div><div>4 - If UPS01 (and LDAP1) down and UPS02 battery low, shutdown NFS and LDAP2 (in this sequence).<br></div><div>5 - If UPS02 (and LDAP2) down and UPS01 battery low, shutdown NFS and LDAP1 (in this sequence).</div>




<div><br></div><div>Thanks and best regards.</div><div><br></div><div>Daniel</div><div><br></div></div></div>
<br></div></div>_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org" target="_blank">Nut-upsuser@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a><br></blockquote></div>
</blockquote></div><br></div>