Fixing the WEBMIN module for APCUPSD in Ubuntu Linux 10.04

By donmc, 14 November, 2010

I recently enabled the APC UPS monitor in my Ubuntu Linux 10.04 web server, and as a part of that, chose to use the webmin module available at: http://download.webmin.com/download/modules/apcupsd-0.81-2.wbm.gz

And for the sake of complete disclosure, the APCUPSD module is available by a simple:

sudo apt-get install apcupsd

I then configured the "/etc/apcupsd/apcupsd.conf" to reflect the fact that I was using the USB connection:

UPSCABLE usb
UPSTYPE usb
DEVICE

yes - the DEVICE entry remains blank to auto-detect the USB connection.
Once that is done, and you have started the daemon successfully:
sudo /etc/init.d/apcupsd start

There were errors in the configuration for the webmin module. To get it to work, I had to go to the webmin module page for APCUPSD, click on "Module Configuration" and update the setting to match those below:

Configurable options for APC UPS Daemon

Configuration file for apcupsd /etc/apcupsd/apcupsd.conf
Time interval for update screens (in sec)
30
Path to multimon.cgi /usr/lib/cgi-bin/apcupsd/multimon.cgi
Path to upsfstats.cgi /usr/lib/cgi-bin/apcupsd/upsfstats.cgi
Path to upsstats.cgi /usr/lib/cgi-bin/apcupsd/upsstats.cgi
Path to upsimage.cgi /usr/lib/cgi-bin/apcupsd/upsimage.cgi
Start apcupsd command /etc/init.d/apcupsd start
Stop apcupsd command /etc/init.d/apc