User Tools

Site Tools


apcupsd

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
apcupsd [2009/08/17 13:03] – created alanapcupsd [2009/08/18 09:19] alan
Line 1: Line 1:
 ===== APCUPSD ===== ===== APCUPSD =====
  
-The 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 [[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:
  
 <file>Aug 17 15:08:36 hpc-ilri apcupsd: apcupsd startup succeeded <file>Aug 17 15:08:36 hpc-ilri apcupsd: apcupsd startup succeeded
Line 8: Line 8:
  
 I haven't been to the server room yet to check out the problem. I haven't been to the server room yet to check out the problem.
 +
 +==== Configuration ====
 +
 +After the daemon is installed, there are two files which need attention:
 +
 +=== /etc/apcupsd/hosts.conf ===
 +
 +<file>[alan@hpc-ilri: /etc/apcupsd]$ cat hosts.conf
 +# Network UPS Tools - hosts.conf
 +#
 +# This file does double duty - it lists the systems that multimon will
 +# monitor, and also specifies the systems that upsstats is allowed to 
 +# watch.  It keeps people from feeding random addresses to upsstats,
 +# among other things.  upsimage also uses this file to know who it 
 +# may speak to. upsfstats too.
 +#
 +# Usage: list systems running upsd that you want to monitor
 +#
 +# MONITOR <address> "<host description>"
 +#
 +# Please note, MONITOR must start in column 1 (no spaces permitted)
 +#
 +# Example: 
 +# MONITOR 10.64.1.1 "Finance department"
 +# MONITOR 10.78.1.1 "Sierra High School data room #1"
 +#
 +MONITOR 127.0.0.1 "ILRI-HPC"</file>
 +
 +=== /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.
 +<file>UPSTYPE usb
 +DEVICE</file>
apcupsd.txt · Last modified: 2011/09/02 12:42 by aorth