[ILUG] UPS signalling
Niall O Broin
niall at magicgoeshere.com
Thu Sep 7 14:18:01 IST 2000
On Thu, Sep 07, 2000 at 11:38:48AM +0100, Declan Grady wrote:
> I have an APC smart-ups which talks to a SCO box, and does auto-shutdown
> after a certain length of time on battery.
> I also have a redhat box on the same ups, but no communication with the
> ups.. How could I get it to do an orderly poweroff as well ? .. Is there
> some way I can get the SCO box to tell it to poweroff ?
If the APC software is a shell script, or a C program to which they give the
source, then you can modify that to talk to the RedHat box and tell it to
shut down (numerous ways of doing that) just before it initiates its own
shutdown. If you don't have the source, another option would be to do
the monitoring on the RedHat box (where of course you will have the source
of the monitoring tool - look for the UPS Howto) and have it tell the SCO
box to shut down.
More information about the ILUG