Step 1

[root@~]# yum install net-snmp lm_sensors

Install the dependency package of apcupsd, if it is installed, skip it.

[root@~]# rpm -ivh apcupsd apcupsd-miltimon

wget download and install the latest rpm of 'apccupsd', 'apcupsd-miltimon' from official website:

Step 2

Connect USB or serial com port to apcupsd server from APC UPC device.

Step 3

[root@~]# vi /etc/apcupsd/apcupsd.conf
UPSCABLE smart UPSTYPE apcsmart DEVICE /dev/ttyS0


Edit the config for UPSCABLE, UPSTYPE and DEVICE, the first one is used for com port cable, second is used for USB

Step 4

[root@~]# /etc/init.d/apcupsd start
[root@~]# chkconfig apcupsd on

Start apcupsd daemon.

Step 5

[root@~]# apcaccess status
[root@~]# apcaccess status localhost:3551

If you edit the config correctly. Try Check the status of UPS device

After you install apcupsd-miltimon, it is the cgi program for UPS monitoring via website. Open broswer:

You can see the log of apcupsd:


[root@~]# vi /etc/apcupsd/apccontrol

You can customize the action (shutdown,..) during the UPS power failure.
You can change 'SHUTDOWN=/bin/ls' while you are testing the DEVICE in the config file.

Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.