File: nut-cgi.README.Debian

package info (click to toggle)
nut 2.8.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,212 kB
  • sloc: ansic: 92,222; sh: 8,037; cpp: 3,070; makefile: 2,302; python: 1,192; perl: 744; xml: 47
file content (39 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Network UPS Tools - CGI Interface - Quick Start for Debian
----------------------------------------------------------

(I) Installation
=================

1) Sample configuration files are provided in /etc/nut/
Rename without the ".sample" suffix the files hosts.conf, upsstats.html,
upsstats-single.html and optionally upsset.conf.
Then edit these to match your configuration.

2) Ensure these configuration files are readable by others

      chmod 755 /etc/nut
      chmod 644 /etc/nut/upsset.conf
      chmod 644 /etc/nut/hosts.conf
      chmod 644 /etc/nut/upsstats.html
      chmod 644 /etc/nut/upsstats-single.html

3) You will then be able to access NUT CGI through a Web browser.
The URL, which depends on your httpd configuration, is:

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

4) NUT also provides a set of HTML files to wrap the CGIs.
To use it, create a new virtual host with your preferred webserver, and point the
Document Root to: /usr/share/nut/www/

	You can also add an alias to an existing site, if it is supported:
    Alias /nut/ "/usr/share/nut/www/"
 
	Also ensure that the files in this directory have the suitable permissions.

For more information on nut-cgi configuration, have a look at the following
manual pages:
- upsstats.html (5)
- hosts.conf (5)
- upsset.conf (5)