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:
http://www.apcupsd.org/



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

UPSCABLE usb UPSTYPE usb DEVICE

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:
http://localhost/cgi-bin/multimon.cgi

You can see the log of apcupsd:
/var/log/apcups.events



P.S.

[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.