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: [codesyntax lang="bash"]
apt-get install apcupsd
[/codesyntax]
- 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[codesyntax lang="bash"]
/etc/init.d/apcupsd start
[/codesyntax]
- check ups status[codesyntax lang="bash"]
apcaccess status
[/codesyntax]
- install APCUPSD-CGI web interface: [codesyntax lang="bash"]
apt-get install apcupsd-cgi
[/codesyntax]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/
- access the web address: http://localhost/cgi-bin/apcupsd/multimon.cgi
Recent Comments