[Nut-upsuser] EATON 5PX with nut 2.6 on ubuntu 12.04

Arnaud Quette aquette.dev at gmail.com
Wed Dec 12 23:15:50 UTC 2012

2012/12/12 Sabine GOUDARD <sabine.goudard at st-etienne.archi.fr>

> Hello,

Hello Sabine,

> I have a EATON 5PX with a Network Management Card
> on ubuntu 12.04
> I established a shutdown procedure like described in rogerprice.org
> It works
> I have an event mail on "onbatt" then another on "onbattdelay1" then the
> "upsmon -c fsd" order on "onbattedelay2"
> When "onbattdelay2" is finished, my server execute "auto logout and
> shutdown proceeding"
> then my ups shutdown too but when ?

please read the section Limitation in snmp-ups:

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!
the best for you is to send an "upscmd ... shutdown.return", before "upsmon
-c fsd" on onbattedelay2

My second question is
> I don't find the "battery.charge.low" parameter on this ups

SNMP OID is not present with the "MGE" MIB.
you can try "mib=" with "pw" or "ietf" in your ups.conf, and check which
one provide the more data...

> my third question
> When electric power come back, ups restart, my server restart
> but the driver isn't connceted
> I have this message :"Can't connect to UPS (snmp-ups-MYUPS) : no such file
> or directory
> If I restart nut service, it's ok
> What can I do to avoid this problem ?

I don't recall the exact init script in 12.04, but /etc/init.d/nut-server
should have a "Required-Start: ... $network ..."
this implies "low level networking (ethernet card; may imply PCMCIA
but I can't guarantee that you SNMP agent is already reachable.
you can delay (or wait for agent availability) in various manners.
the more simple is probably to decrease NUT startup priority...

> and finally, last question
> When electric power come back, ups is started, my server is started
> how can I execute for example a "wake on lan" or a "reboot" for some
> computer which isn't connect on the ups

again, various manners, and not especially tied to nut.
I would recommend  calling wakeonlan or whatever "ssh ... command" in

NUT (Network UPS Tools) Project Leader - http://www.networkupstools.org
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121213/c4dae036/attachment.html>

More information about the Nut-upsuser mailing list