Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 May 2010 16:33:08 -0500
From:      angelv <angelvg@gmail.com>
To:        ports@FreeBSD.org
Subject:   Network UPS Tools and httpd.conf
Message-ID:  <k2h8d3651e31005051433s8d591f94v72a74f306407afbd@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi guy(s)

I have FreeBSD 7.2
#uname -a
FreeBSD alpha.company.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #2:
Sat Jul  4 12:17:17 COT 2009
angel@alpha.company.com:/usr/obj/usr/src/sys/MYKERNEL  amd64

#ls /var/db/pkg
---
apache-2.2.14_6
nut-2.4.1_3
nmap-5.21_1
---

# ls /usr/local/etc/nut/
cmdvartab			nut.conf.sample			upsd.users			upssched.conf.sample		upsstats.h=
tml
driver.list			ups.conf			upsd.users.sample		upsset.conf			upsstats.html.sam=
ple
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>

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

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

I try enter here http://192.168.1.1/nut 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
http://alpha.telemedellin.tv/nut

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

# upsc myups@localhost
battery.charge: 100.00
battery.runtime.low: 0
battery.temperature: 32.00
battery.voltage: 256.80
driver.name: snmp-ups
driver.parameter.pollinterval: 2
driver.parameter.port: 192.168.1.252
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.serial:
ups.status: OL
ups.test.result:


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

--=20
"Afirmo que ambos somos ateos. Yo simplemente creo en un dios menos
que t=FA. Cuando entiendas por qu=E9 descartas a todos los otros posibles
dioses, entender=E1s por qu=E9 yo descarto al tuyo."
Stephen Roberts



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?k2h8d3651e31005051433s8d591f94v72a74f306407afbd>