apcupsd
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
apcupsd [2009/08/17 13:03] – created alan | apcupsd [2011/09/02 12:13] – [Daemon] aorth | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== APCUPSD ===== | ===== APCUPSD ===== | ||
- | The APC UPS Daemon used to work, but now the daemon | + | 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:// |
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | Download source from: http:// | ||
+ | |||
+ | < | ||
+ | $ cd apcupsd-3.14.7 | ||
+ | $ ./configure --enable-usb --enable-cgi | ||
+ | $ make</ | ||
+ | Because I am afraid of doing '' | ||
+ | < | ||
+ | $ sudo rpm -i --test -vv ~/ | ||
+ | $ sudo rpm -i --force ~/ | ||
+ | |||
+ | Add the daemon to the default runlevels: | ||
+ | < | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | ==== Daemon ==== | ||
+ | |||
+ | After the software is installed, there are two files which need attention: | ||
+ | |||
+ | === / | ||
+ | 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 | ||
+ | # monitor, and also specifies the systems that upsstats is allowed to | ||
+ | # watch. | ||
+ | # among other things. | ||
+ | # may speak to. upsfstats too. | ||
+ | # | ||
+ | # Usage: list systems running upsd that you want to monitor | ||
+ | # | ||
+ | # MONITOR < | ||
+ | # | ||
+ | # Please note, MONITOR must start in column 1 (no spaces permitted) | ||
+ | # | ||
+ | # Example: | ||
+ | # MONITOR 10.64.1.1 " | ||
+ | # MONITOR 10.78.1.1 " | ||
+ | # | ||
+ | MONITOR 127.0.0.1 " | ||
+ | |||
+ | === / | ||
+ | |||
+ | The defaults are ok, but make sure the daemon | ||
+ | < | ||
+ | UPSTYPE usb | ||
+ | DEVICE</ | ||
+ | |||
+ | ==== Web monitoring interface ==== | ||
+ | |||
+ | The '' | ||
+ | |||
+ | Copy the CGI scripts: | ||
+ | < | ||
+ | $ sudo cp multimon.cgi upsimage.cgi upsstats.cgi / | ||
+ | |||
+ | Check the status by visiting http:// | ||
+ | |||
+ | ===== 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]: | ||
Aug 17 15:08:46 hpc-ilri apcupsd[3224]: | Aug 17 15:08:46 hpc-ilri apcupsd[3224]: | ||
- | |||
- | I haven' |
apcupsd.txt · Last modified: 2011/09/02 12:42 by aorth