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/08/18 09:19] alanapcupsd [2009/10/13 05:48] 172.26.0.166
Line 1: Line 1:
 ===== APCUPSD ===== ===== APCUPSD =====
  
-The [[http://www.apcupsd.org|APC UPS Daemon]] used to work, but now the daemon refuses to start.  Attempts to start fail, and this is printed in the system log:+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.
  
-<file>Aug 17 15:08:36 hpc-ilri apcupsd: apcupsd startup succeeded +===== Installation =====
-Aug 17 15:08:46 hpc-ilri apcupsd[3224]: apcupsd FATAL ERROR in linux-usb.c at line 649 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>.  +
-Aug 17 15:08:46 hpc-ilri apcupsd[3224]: apcupsd error shutdown completed</file>+
  
-I haven't been to the server room yet to check out the problem.+Download an RPM from here: http://sourceforge.net/projects/apcupsd/files/
  
-==== Configuration ====+Test the rpm: 
 +<code># rpm -vv --test -i ~alan/src/apcupsd-multimon-3.14.7-1.el5.x86_64.rpm</code> 
 +If everything looks good, install: 
 +<code># rpm -i ~alan/src/apcupsd-multimon-3.14.7-1.el5.x86_64.rpm 
 +# rpm -ql apcupsd-multimon 
 +/etc/apcupsd 
 +/etc/apcupsd/apcupsd.css 
 +/etc/apcupsd/hosts.conf 
 +/etc/apcupsd/multimon.conf 
 +/var/www/cgi-bin 
 +/var/www/cgi-bin/multimon.cgi 
 +/var/www/cgi-bin/upsfstats.cgi 
 +/var/www/cgi-bin/upsimage.cgi 
 +/var/www/cgi-bin/upsstats.cgi</code>
  
-After the daemon is installed, there are two files which need attention:+===== Configuration =====
  
-=== /etc/apcupsd/hosts.conf ===+==== Daemon ====
  
-<file>[alan@hpc-ilri: /etc/apcupsd]$ cat hosts.conf +After the software is installed, there are two files which need attention: 
-# Network UPS Tools - hosts.conf+ 
 +=== /etc/apcupsd/hosts.conf === 
 +Make sure to list the the localhost and give it a name.  This is used for remote monitoring and also for checking the status via the multimon CGI script: http://hpc.ilri.cgiar.org/cgi-bin/multimon.cgi 
 +<file># Network UPS Tools - hosts.conf
 # #
 # This file does double duty - it lists the systems that multimon will # This file does double duty - it lists the systems that multimon will
Line 41: Line 55:
 <file>UPSTYPE usb <file>UPSTYPE usb
 DEVICE</file> DEVICE</file>
 +
 +==== Web monitoring interface ====
 +
 +The ''apcupsd'' package comes with a web-based frontend to the daemon which monitors battery status and generates graphs.  The files need to be placed in the filesystem where Apache has been configured to allow scripts to run.  This is usually a ''cgi-bin'' folder.  Copy the contents of ''/etc/apcupsd/cgi/'' to ''/var/www/cgi-bin/'' and then you can try to check the status by visiting http://hpc.ilri.cgiar.org/cgi-bin/multimon.cgi
 +
 +===== Troubleshooting =====
 +
 +We have seen problems with the USB cable not being detected, but switching ports fixed the problem.  If you see the ''apcupsd'' service failing to start, check the log file to see if something is wrong:
 +
 +**/var/log/messages**:
 +
 +<file>Aug 17 15:08:36 hpc-ilri apcupsd: apcupsd startup succeeded
 +Aug 17 15:08:46 hpc-ilri apcupsd[3224]: apcupsd FATAL ERROR in linux-usb.c at line 649 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see <http://www.apcupsd.com/support.html>
 +Aug 17 15:08:46 hpc-ilri apcupsd[3224]: apcupsd error shutdown completed</file>
apcupsd.txt · Last modified: 2011/09/02 12:42 by aorth