User Tools

Site Tools


apcupsd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
apcupsd [2009/10/13 05:43] 172.26.0.166apcupsd [2009/10/13 07:13] 172.26.0.166
Line 3: Line 3:
 The HPC's head node is connected to an APC battery backup unit which has a USB cable that can be used for monitoring power status. The [[http://www.apcupsd.org|APC UPS Daemon]] is configured on the server to monitor for power interuptions and notify the computer of the status.  If power is off too long it can instruct the computer to shut down. The HPC's head node is connected to an APC battery backup unit which has a USB cable that can be used for monitoring power status. The [[http://www.apcupsd.org|APC UPS Daemon]] is configured on the server to monitor for power interuptions and notify the computer of the status.  If power is off too long it can instruct the computer to shut down.
  
-Download an RPM from here: http://sourceforge.net/projects/apcupsd/files/+===== Installation =====
  
-apcupsd-multimon-3.14.7-1.el5.x86_64.rpm+Download source from: http://www.apcupsd.com/dl.php
  
 +<code>$ tar zxf apcupsd-3.14.7.tar.gz
 +$ cd apcupsd-3.14.7
 +$ ./configure --enable-usb --enable-cgi
 +$ make</code>
 +Because I am afraid of doing ''make install'' I will make my own RPM using checkinstall:
 +<code>$ sudo /usr/sbin/checkinstall -R
 +$ sudo rpm -i --test -vv ~/rpmbuild/RPMS/x86_64/apcupsd-3.14.7-1.x86_64.rpm
 +$ sudo rpm -i --force ~/rpmbuild/RPMS/x86_64/apcupsd-3.14.7-1.x86_64.rpm</code>
 +
 +Copy the CGI scripts:
 +<code>$ sudo cp multimon.cgi upsimage.cgi upsstats.cgi /var/www/cgi-bin/</code>
  
 ===== Configuration ===== ===== Configuration =====
Line 38: Line 49:
 === /etc/apcupsd/apcupsd.conf === === /etc/apcupsd/apcupsd.conf ===
  
-The defaults are ok, but make sure the daemon is configured to use ''UPSTYPE usb'', and leave the ''DEVICE'' blank for auto detection. +The defaults are ok, but make sure the daemon is configured to use the following settings (leave ''DEVICE'' blank for auto detection): 
-<file>UPSTYPE usb+<file>UPSCABLE usb 
 +UPSTYPE usb
 DEVICE</file> DEVICE</file>
  
apcupsd.txt · Last modified: 2011/09/02 12:42 by aorth