User Tools

Site Tools


apcupsd

This is an old revision of the document!


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:

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

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

[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"

/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.

UPSTYPE usb
DEVICE
apcupsd.1250587176.txt.gz · Last modified: 2010/05/22 14:19 (external edit)