Linux and SAMBA

Using an APC BE550R UPS with Debian Etch Linux

Copyright 2009 by Stephen Vermeulen
Last updated: 2009 Dec 21
Replacing a Windows NT 4.0 Server with Linux

25 able around back batteries battery bit building cable called check cloud config couple documentation following install last line model monitor nt port print provide right second since src table test tr turn ubuntu various vermeulen

See also:


A package called apcupsd can be used with Debian Etch to provide monitoring of an APC Back-UPS ES UPS via a USB cable, I tried this with a BE550R bought in Dec'07 (this model has user changeable batteries which stocks). You need to get the package:
apt-get install apcupsd
and then configure it. The instructions on the apcupsd are a bit confusing, until you read this article, where it tells you the configuration file is:
and that in the second config file: /etc/default/apcupsd you only need to edit the ISCONFIGURED line to read Yes.

In the apcupsd.conf file you will need to set the following lines like this:

Then you should be able to connect the UPS with the USB cable, and start the monitor with:
/etc/init.d/apcupsd start
Do a:
cat /var/log/
to look for any errors. Once it is running you can look for more information with the command:
which will print out a couple of screens of information on the UPS state.

To test this, plug the UPS into a switched powerbar and then you can turn the power to the UPS off and on and check that the computer gets shutdown at the appropriate time. The apcaccess command returns a fair bit of information, in the middle of this the following appears:

LINEV    : 121.0 Volts
LOADPCT  :  25.0 Percent Load Capacity
BCHARGE  : 082.0 Percent
TIMELEFT :  16.8 Minutes
telling you the state of charge of the battery, the current load and the amount of time the UPS could power the current load. Since this is a 330W UPS, the load is drawing about 82W currently. This load consists of a small Linux server built around a mini-ITX motherboard and two 300GB drives in a RAID-1 configuration, a DSL modem, a Linksys gateway router with an integrated 8 port 100MHz switch and a Netgear 8 port gigabit switch.

                back to home