<br />
  Hello <br />
<span class="short_text"><span class="hps">I almost</span> <span class="hps">managed to</span> <span class="hps">make everything work</span></span><br />
my server isn't in prodution because i had some problem on others system<br />
but last week i come back and i run an update on ubuntu 12.04.1 to 12.04.2<br />
I don't known if its' the reaseon or if someone has change something but<br />
scripts <span class="short_text hps">no longer work<br />
I have a message "returned 2"<br />
Can you help me because I don't find how to solve this<br />
thanks<br />
Best regards<br />
</span> sabine
<p>----------------message d'origine----------------- <br />
De: "Sabine GOUDARD" <sabine.goudard@st-etienne.archi.fr> <br />
A: "Arnaud Quette" <aquette.dev@gmail.com> <br />
Date: Fri, 08 Mar 2013 08:46:19 +0100 <br />
----------------------------------------------------------</p>
<blockquote type="cite"><br />
Hello Arnaud<br />
<span class="short_text"><span class="hps">I almost</span> <span class="hps">managed to</span> <span class="hps">make everything work</span></span><br />
my server isn't in prodution because i had some problem on others system<br />
but last week i come back and i run an update on ubuntu 12.04.1 to 12.04.2<br />
I don't known if its' the reaseon or if someone has change something but<br />
scripts <span class="short_text hps">no longer work<br />
I have a message "returned 2"<br />
Can you help me because I don't find how to solve this<br />
thanks<br />
Best regards<br />
</span> sabine<br />
<div>Le 13/12/2012 00:15, Arnaud Quette a écrit :</div>
<blockquote type="cite"><br />
<div>2012/12/12 Sabine GOUDARD <span><<a target="_blank" href="mailto:sabine.goudard@st-etienne.archi.fr">sabine.goudard@st-etienne.archi.fr</a>></span><br />
<blockquote class="gmail_quote c1">Hello,<br />
</blockquote>
<div><br />
Hello Sabine,<br />
 </div>
<blockquote class="gmail_quote c1">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 target="_blank" href="http://rogerprice.org">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 />
</div>
<blockquote class="gmail_quote c1">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 c1">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 c1">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</div>
</div>
<br />
cheers,<br />
Arno<br />
--<br />
NUT (Network UPS Tools) Project Leader - <a target="_blank" href="http://www.networkupstools.org">http://www.networkupstools.org</a><br />
Debian Developer - <a target="_blank" href="http://www.debian.org">http://www.debian.org</a><br />
Free Software Developer - <a target="_blank" href="http://arnaud.quette.fr">http://arnaud.quette.fr</a><br />
<br />
</blockquote> <br />
</blockquote><br /><hr style="border:dotted 1px silver; width:90%; border:dotted 1px silver;"><p><strong><br />
</strong><strong>Sabine Goudard</strong><br />
Service Informatique et Multimédia<br />
Tél : 04 77 42 37 20</p>
<p><strong>Ecole Nationale Supérieure  d’Architecture de Saint-Étienne</strong><br />
1, rue Buisson BP 94 <br />
42003 Saint-Étienne Cedex 1<br />
Tél. : 04 77 42 35 42  <br />
Fax : 04 77 42 35 40<br />
<a href="http://www.st-etienne.archi.fr">http://www.st-etienne.archi.fr</a></p>