Follow the instructions in the manual at www.apcupsd.org. Very straightforward:
./configure --enable-usb --with-upstype=usb --with-upscable=usb --prefix=/usr/local --with-cgi-bin=/var/www/cgi-bin/ --enable-cgi --with-css-dir=/var/www/htdocs/local/css --with-log-dir=/var/log/apcupsd
make
sudo make install
Don't turn on pthreads support. Bad idea on OpenBSD.
I went through the testing steps just up to the simulated shutdown. Nice:
Thu Apr 20 23:08:57 PDT 2006 apcupsd 3.12.2 (18 January 2006) openbsd startup succeeded
Thu Apr 20 23:14:16 PDT 2006 Communications with UPS lost.
Thu Apr 20 23:14:28 PDT 2006 Communications with UPS restored.
Thu Apr 20 23:16:29 PDT 2006 Power failure.
Thu Apr 20 23:16:35 PDT 2006 Running on UPS batteries.
Thu Apr 20 23:16:53 PDT 2006 Mains returned. No longer on UPS batteries.
Thu Apr 20 23:16:53 PDT 2006 Power is back. UPS running on mains.
Works like a charm so far.
No comments:
Post a Comment