<br><div class="gmail_quote">2012/12/12 Sabine GOUDARD <span dir="ltr"><<a href="mailto:sabine.goudard@st-etienne.archi.fr" target="_blank">sabine.goudard@st-etienne.archi.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br></blockquote><div><br>Hello Sabine,<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a EATON 5PX with a Network Management Card<br>
on ubuntu 12.04<br>
<br>
I established a shutdown procedure like described in <a href="http://rogerprice.org" target="_blank">rogerprice.org</a><br>
It works<br>
<br>
I have an event mail on "onbatt" then another on "onbattdelay1" then the "upsmon -c fsd" order on "onbattedelay2"<br>
<br>
When "onbattdelay2" is finished, my server execute "auto logout and shutdown proceeding"<br>
then my ups shutdown too but when ?<br></blockquote><div> <br>please read the section Limitation in snmp-ups:<br><a href="http://www.networkupstools.org/docs/man/snmp-ups.html">http://www.networkupstools.org/docs/man/snmp-ups.html</a><br>
<br>though the 2 first sentences are not true anymore (I've implemented snmp-ups shutdown in 2.6.4), the last one is still very true!<br>the best for you is to send an "upscmd ... shutdown.return", before "upsmon -c fsd" on onbattedelay2<br>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My second question is<br>
I don't find the "battery.charge.low" parameter on this ups<br></blockquote><div><br>SNMP OID is not present with the "MGE" MIB.<br>you can try "mib=" with "pw" or "ietf" in your ups.conf, and check which one provide the more data...<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
my third question<br>
When electric power come back, ups restart, my server restart<br>
but the driver isn't connceted<br>
I have this message :"Can't connect to UPS (snmp-ups-MYUPS) : no such file or directory<br>
If I restart nut service, it's ok<br>
What can I do to avoid this problem ?<br></blockquote><div><br>I don't recall the exact init script in 12.04, but /etc/init.d/nut-server should have a "Required-Start: ... $network ..."<br>this implies "low level networking (ethernet card; may imply PCMCIA running)"<br>
but I can't guarantee that you SNMP agent is already reachable.<br>you can delay (or wait for agent availability) in various manners.<br>the more simple is probably to decrease NUT startup priority...<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

and finally, last question<br>
When electric power come back, ups is started, my server is started<br>
how can I execute for example a "wake on lan" or a "reboot" for some computer which isn't connect on the ups<br></blockquote><div> <br>again, various manners, and not especially tied to nut.<br>I would recommend  calling wakeonlan or whatever "ssh ... command" in /etc/rc.local<br>
</div></div><br clear="all">cheers,<br>Arno<br>-- <br>NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br><br>