Mantis - apcupsd
Viewing Issue Advanced Details
5059 packaging feature always 2013-03-12 15:18 2013-03-14 15:17
bollar  
dam  
normal  
closed  
fixed  
none    
none  
0005059: Please add --enable-cgi to Configure Options
Adding ./config --enable-cgi enables the building of the CGI programs that permit Web browser access to apcupsd data. This is especially interesting in multi-server locations, as all UPS devices can be seen at once.
You may also want to set the following configurations to make more compatible with OpenCSW:

--with-cgi-bin=path
     The with-cgi-bin configuration option allows you to define the directory where the CGI programs will be installed. The default is /etc/apcupsd, which is probably not what you want.
--with-css-dir=path
     This option allows you to specify where you want apcupsd to put the Cascading Style Sheet that goes with the multimoncss.cgi CGI program.
Issue History
2013-03-12 15:18 bollar New Issue
2013-03-13 10:44 dam Status new => assigned
2013-03-13 10:44 dam Assigned To => dam
2013-03-13 11:08 dam Note Added: 0010286
2013-03-13 11:08 dam Status assigned => feedback
2013-03-14 04:44 bollar Note Added: 0010291
2013-03-14 12:43 dam Note Added: 0010292
2013-03-14 12:45 dam Note Edited: 0010292
2013-03-14 14:59 bollar Note Added: 0010293
2013-03-14 15:17 dam Note Added: 0010294
2013-03-14 15:17 dam Status feedback => closed
2013-03-14 15:17 dam Resolution open => fixed

Notes
(0010286)
dam   
2013-03-13 11:08   
Updated packages are available at
  http://buildfarm.opencsw.org/experimental.html#apcupsd [^]
Please let me know if it works so I can push it to unstable.
(0010291)
bollar   
2013-03-14 04:44   
I didn't see the files generated into /etc/apcupsd, or into /opt/csw/apache2/share/cgi-bin -- if these files were installed into another location, I missed them:


multimon.cgi
upsstats.cgi
upsfstats.cgi
upsimage.cgi
(0010292)
dam   
2013-03-14 12:43   
(edited on: 2013-03-14 12:45)
Indeed they are. Please install CSWapcups-cgi, the cgi scripts are in
  /opt/csw/share/www/apcupsd/cgi
You need to link this to the webserver cgi dir your are using. Same for the css file.

(0010293)
bollar   
2013-03-14 14:59   
Ah!

I have installed and the graphs work as expected. Thanks!
(0010294)
dam   
2013-03-14 15:17   
Pushing 3.14.10,REV=2013.03.13 to unstable/.