[Nut-upsuser] Nut-cgi error

Georgy georgy at bawetic.be
Thu Jul 24 14:01:21 UTC 2008


Hello all,
I have succefully configure a trust 1200v ups with nut-2.2.2 on an 
ubuntu 6.06 LTS by follow this instructions :
http://www.networkupstools.org/doc/2.2.0/INSTALL.html

I have the nut-cgi  2.0.3-4 from the ubuntu repos installed
Now, I have problems to configure the nut-cgi in my web browser and I 
have this when i tried to http://localhost/cgi-bin/nut/upsstats.cgi.

Error: can't open hosts.conf

I added to /etc/apache2/sites-available/default :

ScriptAlias /nut /usr/lib/cgi-bin/nut
        <Directory "/usr/lib/cgi-bin/nut">
                AllowOverride Limit
                Options +ExecCGI
                Order allow,deny
                Allow from all
        </Directory>

ls -l /etc/nut :

-rw-r--r-- 1 root root 1104 2008-07-18 13:25 hosts.conf
-rw-r--r-- 1 root root  162 2008-07-17 15:17 upsmon.conf
-rw-r--r-- 1 root root 1542 2008-07-24 15:09 upsset.conf
-rw-r--r-- 1 root root 1773 2008-07-17 13:58 upsstats.html
-rw-r--r-- 1 root root 1867 2008-07-17 13:58 upsstats-single.html

vi hosts.conf :

MONITOR trust at localhost "trust"

vi upsset.conf

###
 I_HAVE_SECURED_MY_CGI_DIRECTORY
###

tail -f /var/log/apache2/error.log

[Thu Jul 24 16:37:16 2008] [error] [client 217.136.113.223] upsstats: 
Can't open /etc/nut/hosts.conf: Permission denied
[Thu Jul 24 16:37:17 2008] [error] [client 217.136.113.223] upsstats: 
Can't open /etc/nut/hosts.conf: Permission denied
[Thu Jul 24 16:37:19 2008] [error] [client 217.136.113.223] upsstats: 
Can't open /etc/nut/hosts.conf: Permission denied
[Thu Jul 24 17:02:23 2008] [error] [client 217.136.113.223] upsstats: 
Can't open /etc/nut/hosts.conf: Permission denied


Any hint ?

Thanks

Georgy
 








More information about the Nut-upsuser mailing list