apcupsd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apcupsd [2009/08/18 09:19] – alan | apcupsd [2011/09/02 12:42] (current) – aorth | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== APCUPSD ===== | ===== APCUPSD ===== | ||
- | The [[http:// | + | 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. |
- | < | + | ===== Installation (RPM) ===== |
- | 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, | + | Download pre-compiled RPMs for Enterprise Linux 5 from the EPEL project: http://download.fedora.redhat.com/pub/ |
- | Aug 17 15:08:46 hpc-ilri apcupsd[3224]: | + | |
- | I haven' | + | ===== Installation (manual) ===== |
+ | Download source from: http://www.apcupsd.com/ | ||
- | ==== Configuration ==== | + | < |
+ | cd apcupsd-3.14.7 | ||
+ | ./configure --enable-usb --enable-cgi | ||
+ | make | ||
+ | sudo make install</ | ||
- | After the daemon is installed, there are two files which need attention: | + | ===== Configuration ====== |
- | === / | + | ==== Daemon ==== |
- | < | + | After the software is installed, there are two files which need attention: |
- | # Network UPS Tools - 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: | ||
+ | < | ||
# | # | ||
# 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 36: | Line 43: | ||
MONITOR 127.0.0.1 " | MONITOR 127.0.0.1 " | ||
- | === / | + | ==== / |
- | The defaults are ok, but make sure the daemon is configured to use '' | + | The defaults are ok, but make sure the daemon is configured to use the following settings (leave '' |
- | < | + | < |
+ | UPSTYPE usb | ||
DEVICE</ | DEVICE</ | ||
+ | |||
+ | ==== Web monitoring interface (optional) ==== | ||
+ | |||
+ | The '' | ||
+ | |||
+ | Copy the CGI scripts: | ||
+ | < | ||
+ | $ sudo cp multimon.cgi upsimage.cgi upsstats.cgi / | ||
+ | |||
+ | Check the status by visiting http:// | ||
+ | |||
+ | ===== Startup ===== | ||
+ | Add the daemon to the default runlevels: | ||
+ | < | ||
+ | |||
+ | ===== Testing ===== | ||
+ | Make sure the daemon is stopped, then run: | ||
+ | |||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | We have seen problems with the USB cable not being detected, but switching ports fixed the problem. | ||
+ | |||
+ | **/ | ||
+ | |||
+ | < | ||
+ | Aug 17 15:08:46 hpc-ilri apcupsd[3224]: | ||
+ | Aug 17 15:08:46 hpc-ilri apcupsd[3224]: |
apcupsd.1250587176.txt.gz · Last modified: 2010/05/22 14:19 (external edit)