Feb 17, 06:38 PM
Category  

So Lenny broke my old UPS monitoring software (Opti-UPS does not play well with Linux anyway, and now it’s segfaulting), and as the UPS was a few years old anyway I grabbed a deal (free shipping!) on a new one from Newegg. I got an APC BE550G.

Step 1:

sudo aptitude install apcupsd apcupsd-cgi

Step 2: Edit /etc/apcupsd/apcupsd.conf. Mine is connected via USB, so it was easy, I just had to change:

     UPSCABLE usb
     UPSTYPE usb
     DEVICE

Step 3: Edit /etc/default/apcupsd:

ISCONFIGURED=yes

Step 4: Make CGI scripts web-accessible, e.g.:

$ sudo ln -s /usr/lib/cgi-bin/apcupsd /var/www/apc

Step 4a: Lighttpd users need to make sure the following is added to their cgi.assign block and restart Lighty:

".cgi" => ""

Step 5: Restart apcupsd. Point your Web browser at your web server’s address /apc/multimon.cgi. Works!

Comment

Commenting is closed for this article.