[Wlug] Software to use with APC UPS?

Richard Klein rich at richardklein.org
Sun Sep 17 14:27:46 EDT 2006


Andy Stewart wrote:
> 
> I have an APC SmartUPS and I use the apcupsd software.
> 
> Try this link:
> http://www.apcupsd.org/
> 
> It has a web interface.  I can email you a screenshot if you are
> interested (I didn't want to spam the list with it).

I tried 'apt-get install apcupsd' and it worked, installing 
v3.10.something.  I couldn't get apctest to work, though, and the 
package didn't include the CGI files I wanted, so I removed it and 
downloaded the src for v3.12.4 (stable).  I compiled it, and everything 
seems to work, but it still didn't create the CGI files.  I'm sure I set 
the ./configure options correctly, so why didn't it create the CGI files?

I typed:
./configure --enable-powerflute --enable-cgi 
--with-cgi-bin=/var/www/web1/cgi-bin --with-css-dir=/var/www/web1/web 
--enable-usb --enable-pthreads --disable-dumb --enable-test 
--with-nis-port=3551 --sbindir=/sbin --with-upstype=usb --with-upscable=usb

and then:
make install

Here's config.out:
Configuration on Sun Sep 17 12:53:30 EDT 2006:

   Host:                       i686-pc-linux-gnu -- debian 3.1
   Apcupsd version:            3.12.4 (19 August 2006)
   Source code location:       .
   Install binaries:           /sbin
   Install config files:       /etc/apcupsd
   Install man files:          /usr/share/man
   Nologin file in:            /etc
   PID directory:              /var/run
   LOG dir (events, status)    /var/log
   LOCK dir (for serial port)  /var/lock
   Power Fail dir              /etc/apcupsd
   Compiler:                   /usr/bin/g++ 3.3.5
   Compiler flags:             -g -O2 -Wall
   Linker flags:                -g -O
   Host and version:           debian 3.1
   Shutdown Program:           /sbin/shutdown
   Port/Device:                /dev/ttyS0
   Network Info Port (CGI):    3551
   Master/slave Port:          6544
   UPSTYPE                     usb
   UPSCABLE                    usb

   drivers (no-* are disabled): apcsmart no-dumb no-net usb no-snmp test

   enable-master-slave:        no
   enable-nis:                 yes
   with-nisip:                 0.0.0.0
   enable-cgi:                 yes
   with-cgi-bin:               /var/www/web1/cgi-bin
   with-libwrap:
   enable-nls:                 no
   enable-libintl:             no
   enable-powerflute:          yes
   enable-pthreads:            yes
   enable-dist-install:        yes


That all looks fine, so I don't know where it went wrong.

-- 
Rich


More information about the Wlug mailing list