Question: Managing UPS monitoring on Debian
Posted by simms on Wed 1 Jun 2005 at 14:17
Having set up a reliable Debian `sarge' server in a production environment, I'm now eliminating any potential obstacles to running it on a round-the-clock basis. Inevitably, this has led me to hook up the machine to an uninterruptible power supply (UPS) unit, and though this alone should be enough to keep the machine running through minor power outages and line problems, it would definitely be better if the box were aware of the UPS' state, so that graceful shutdowns could be performed, at the very least.
The UPS in question is an APC Back-UPS 650, and it's connected to my Debian box via a standard 9-pin serial cable on ttyS0 (a.k.a. COM1).
Looking at the range of Debian packages available for UPS monitoring, I see nut, apcd, upsd, powstatd, and so on.
It's difficult to tell which of these is the smart way to go: nut seems to have the best reputation, but it looks like overkill, since it was designed with a whole network of UPS-dependent boxes in mind; apcd seems right for the job, but it's not very well-documented.
The others I've never even heard of.
Given the simplicity of the setup (a single machine connected to a very common UPS model in the simplest possible way), I figure that there must be a straight-forward way to get this done with maybe one package and a few lines of configuration.
Does anyone here have a method they could recommend? K.I.S.S., please :)
[ Parent | Reply to this comment ]
I have a USB connection only (I think the model is a BackUPS 350, I didn't buy it myself). For some reason I have had problems on and off with the USB system recognizing the APC, without configuration changes on my part. I do not believe however that apcupsd is responsible for that, but I have yet to figure out what the actual cause is. Either way, this should not be a problem with a serial cable.
Anton
[ Parent | Reply to this comment ]
There are even some very good hints about where to buy your batteries in the documentation (saved me 400 bucks...)
The next thing i'll want to try is the Windows (cygwin) port of it
(Packages used apcupsd/apcupsd-cgi/apcupsd-doc)
[ Parent | Reply to this comment ]
unfortunately, i've now understood that no monitoring package will work unless i use the APC-supplied serial cable (or make my own). a truly generic serial cable simply won't work.
once the cable is located and in place, i'll post my configuration. in the meantime, thanks for all your replies.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Yes, I know it sounds daft. Here's the lowdown on it.
Don't know if it works for 2.4 and 2.6 kernels though.
PJ
[ Parent | Reply to this comment ]
Regards
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]