I've also had good luck with the latest sourceforge release of apcupsd, especially since the APC USB is now usefully detected as a ugen. Thanks again to the kind soul who provided the USB quirks patch back in the 3.8 or 3.9 days.
Their configure script doesn't handle --prefix too well, though; it still insisted on installing things into /sbin. I ended up having to do something like this: ./configure --sbindir=/usr/local/sbin --mandir=/usr/local/man --enable-usb [your options] --david On 5/21/07, Marco S Hyman <[EMAIL PROTECTED]> wrote:
"Jean-Daniel Beaubien" writes: > If you want to use an APC UPS you might need to compile nut from ports (or > download and compile the latest version). Or use apcuspd. Last time I got the source from sourceforge it just worked. ./configure --enable-usb make sudo make install neko[marc]# /etc/rc.apcupsd restart Stopping apcupsd power management Done. waiting for apcupsd to exit Starting apcupsd power management Done. neko[marc]# /etc/rc.apcupsd status APC : 001,037,0911 DATE : Mon May 21 13:40:56 PDT 2007 HOSTNAME : neko.snafu.org RELEASE : 3.14.0 VERSION : 3.14.0 (9 February 2007) openbsd UPSNAME : neko.snafu.org CABLE : USB Cable MODEL : Back-UPS RS 1500 UPSMODE : Stand Alone STARTTIME: Mon May 21 13:40:53 PDT 2007 STATUS : ONLINE LINEV : 118.0 Volts LOADPCT : 36.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 91.5 Minutes MBATTCHG : 30 Percent MINTIMEL : 10 Minutes MAXTIME : 0 Seconds SENSE : Low LOTRANS : 097.0 Volts HITRANS : 132.0 Volts ALARMDEL : Always BATTV : 26.9 Volts LASTXFER : Low line voltage NUMXFERS : 0 TONBATT : 0 seconds CUMONBATT: 0 seconds XOFFBATT : N/A SELFTEST : NO STATFLAG : 0x07000008 Status Flag MANDATE : 2004-09-25 SERIALNO : JB0439032522 BATTDATE : 2001-09-25 NOMINV : 120 NOMBATTV : 24.0 FIRMWARE : 8.g8 .D USB FW:g8 APCMODEL : Back-UPS RS 1500 END APC : Mon May 21 13:40:57 PDT 2007 // marc