On 2012-01-30, pavel pocheptsov <lilit-aibo...@mail.ru> wrote:
> hello misc.
> please help to understand how it work?
> I install nut and nut-cgi from pakages.
> nut work without any problem:
>
> # upsc eaton@localhost
> battery.charge: 100
> battery.charge.low: 20
> battery.runtime: 3216
> device.mfr: MGE UPS SYSTEMS
> device.model: EX 2200
> device.serial: AQ0L39022
> driver.name: mge-shut
> ...
> input.frequency: 50
> input.voltage: 227
> ...
> ups.load: 11
> ..
> ups.power.nominal: 2200
> ups.serial: AQ0L39022
> ups.status: OL CHRG
> ..
>
> but I can't set up web for it.
> I uncomment line in hosts.conf, and change line in upsset.conf to actual.
> also try any settings in httpd.conf, but result - upsstats.html shows 
> formatted page
> with " @HOSTLINK@, @VAR ups.model@" and other macros from upsstats.html 
> instead of real parameter.
> what can be not right?
>
>
>
> --
>
>

You aren't supposed to open the html files, they are just templates,
you should be using the cgi scripts e.g.

https://localhost/cgi-bin/nut/upsstats.cgi

At the moment they don't work properly in chroot. This is fixable
if you change USE_LIBTOOL=Yes to USE_LIBTOOL=gnu in the port and
rebuild/reinstall.

Reply via email to