apcupsd is a daemon which will monitor your APC SmartUPS to shutdown your system when the UPS' power is going to fail. apcupsd will work with most of APC's Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office.
- install the daemon:
apt-get install apcupsd
- edit /etc/apcupsd/apcupsd.conf and change these lines
- UPSNAME myownups
- UPSCABLE usb
- UPSTYPE usb
- comment out DEVICE (it contains a TTY link, which will prevent it from working)
- edit /etc/default/apcupsd
- change ISCONFIGURED from no to yes
- start apcupsd daemon
/etc/init.d/apcupsd start
- check ups status
apcaccess status
- install APCUPSD-CGI web interface: Note: For this to work you MUST have CGI enabled in your Apache configuration and the CGI directory should be pointed at /usr/lib/cgi-bin/
apt-get install apcupsd-cgi
- access the web address: http://localhost/cgi-bin/apcupsd/multimon.cgi