Mailinglist Archive: opensuse (2496 mails)

< Previous Next >
Re: [opensuse] UPS And Multiple Computers
  • From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 01 Dec 2008 18:14:28 +0100
  • Message-id: <49341B74.7040909@xxxxxxxxxxxxxxxxxxxxxxx>
Randall R Schulz wrote:
On Monday 01 December 2008 08:25, Dave Howorth wrote:
Randall R Schulz wrote:
If you have multiple computers, how does one get them to all
initiate the desired actions when main power fails and the UPS
takes over?
I don't know about other s/w but the apcupsd software has a networked
mode for this situation.

So the one computer to which the UPS is connected (via USB, presumably)
handles the direct notifications from the UPS and then in turn notifies
dependent systems via the LAN? And you don't have to hack that together
yourself? Both the local and remote sides are supported directly by
apcupsd? If so, that sounds pretty good.

I was thinking you could script such things, but it seems tedious,
clunky and more work to test than I'd care to undertake.

apcupsd has quite a few plugins for several systems ready to run. I have a
small SmartUPS 750 at home that is controlled via usb by my main linux server:

## apcupsd.conf v1.1 ##
UPSNAME SmartUPS750
UPSCABLE usb
UPSTYPE usb
DEVICE
LOCKFILE /var/lock
ONBATTERYDELAY 8
BATTERYLEVEL 5
MINUTES 2
TIMEOUT 10
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 0
#POLLTIME 10
NETTIME 10
STATTIME 1
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0

You don't even have to tell the master which clients want to receive
notifications unlike the old master/slave configuration.

The client only needs to know where the NIS master is:

## apcupsd.conf v1.1 ##
UPSCABLE ether
UPSTYPE net
DEVICE ip.of.ser.ver:3551
POLLTIME 20
NETSERVER on
NISIP 127.0.0.1
NISPORT 3551
UPSCLASS standalone
UPSMODE disable

apcupsd even provides a plugin for my ipcop firewall.
The bigger ups of my company has a network interface that I can poll directly
from all clients.


--
Sandy

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >