Network UPS Tools and httpd.conf

angelv angelvg at
Wed May 5 22:04:23 UTC 2010

Hi guy(s)

I have FreeBSD 7.2
#uname -a
FreeBSD 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #2:
Sat Jul  4 12:17:17 COT 2009
angel at  amd64

#ls /var/db/pkg

# ls /usr/local/etc/nut/
cmdvartab			nut.conf.sample			upsd.users			upssched.conf.sample		upsstats.html
driver.list			ups.conf			upsd.users.sample		upsset.conf			upsstats.html.sample
hosts.conf			ups.conf.sample			upsmon.conf			upsset.conf.sample
hosts.conf.sample		upsd.conf			upsmon.conf.sample		upsstats-single.html
nut.conf			upsd.conf.sample		upssched.conf			upsstats-single.html.sample

# ls /usr/local/www/nut/
bottom.html	header.html	index.html	nut-banner.png

# ls /usr/local/www/cgi-bin/nut/
upsimage.cgi	upsset.cgi	upsstats.cgi

# edit /usr/local/etc/apache22/httpd.conf
        <Directory /usr/local/www/nut>
                AllowOverride Options FileInfo
                Order deny,allow
                Allow from all

        <Directory /usr/local/www/cgi-bin/nut>
                Options ExecCGI

        ScriptAlias /nut/cgi/ /usr/local/www/cgi-bin/nut/
        Alias /nut /usr/local/www/nut/

I try enter here and click on Statistics but
receive this error

Not Found

The requested URL /cgi-bin/nut/upsstats.cgi was not found on this server.

If you like please enter here for view the same error

I think the nut state work ok, i receive this report

# upsc myups at localhost
battery.charge: 100.00
battery.runtime.low: 0
battery.temperature: 32.00
battery.voltage: 256.80 snmp-ups
driver.parameter.pollinterval: 2
driver.version: 2.4.1
driver.version.internal: 0.44
input.current: 0.00
input.frequency: 59.90
input.phases: 1.00
input.quality: 34.00
input.voltage: 1955.00
output.current: 0.00
output.phases: 1.00
output.realpower: 0.00
output.voltage: 2295.00
ups.firmware:   Ver P7.0
ups.firmware.aux: AlphaLink Card v4.26 (SN 1117027624120)
ups.load: 69.00
ups.mfr: UPS
ups.model:  Model 10K
ups.power: 0.00
ups.status: OL

Pleas i need the correct options for put in my httpd.conf

"Afirmo que ambos somos ateos. Yo simplemente creo en un dios menos
que tú. Cuando entiendas por qué descartas a todos los otros posibles
dioses, entenderás por qué yo descarto al tuyo."
Stephen Roberts

More information about the freebsd-ports mailing list