-----BEGIN PGP SIGNED MESSAGE-----
If it's an APC UPS, then apcupsd should do what you want (maybe with a
few scripts added). I think apcupsd also supports some non-APC UPSs. A
quick google should sort you.
Thomas Rooney wrote on 24/09/07 17:59:
> Hi All
>> I have a new Dell server with redundant power supply's it is running
> ubuntu feisty.
> The building its in is served by two ESB connections one of which is
> on the same
> grid as the Matter Hospital it has never gone down ever.
>> So what I want to do is plug our UPS into the the good grid and
> connect it to the
> server and also plug the server into the not so good grid, sort of
> belt and braces.
> In the unlikely event that the Matter Hospitals power does go down I
> would like
> the server to send an email to my sms gateway and alert me to the
> fact. The UPS
> has a serial port on it that I imagine would send some info to the
> server to let it
> know that its running on battery's and it should shut its self down,
> sending the all
> important email before it does and also letting the other server on
> the UPS know
> about the power failure and have it shut down also, this could be
> done over SSH
> one would think.
>> So to cut this short where do I start?
>> Any and all suggestions welcome.
>> Kind Regards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!