| HOSTS.CONF(5) | NUT Manual | HOSTS.CONF(5) |
NAME
hosts.conf - Access control for Network UPS Tools CGI programs
DESCRIPTION
The CGI programs (upsset.cgi(8), upsstats.cgi(8), upsimage.cgi(8)) use this file to determine if they are allowed to talk to a host. This keeps random visitors from using your web server to annoy others by creating outgoing connections.
IMPORTANT NOTES
DIRECTIVES
MONITOR ups description
To allow connections to an UPS called "snoopy" on a system called "doghouse" that runs upsd on port 7877, it would look like this:
MONITOR snoopy@doghouse:7877 "Joe Cool"
The description must be one element, so if it has spaces, then it must be wrapped with quotes as shown above. The default hostname is "localhost".
CUSTOM_TEMPLATE_LIST filename, CUSTOM_TEMPLATE_SINGLE filename
.../cgi-bin/upsstats.cgi?template_single=custom-s.htm&template_list=custom-l.htm
+ Specific file names for a specific role must be permitted with these directives (can be repeated). File names must contain the .htm sub-string and must be located directly in the NUT configuration directory (same as default templates). If custom templates are used in the original request URI, they will be automatically suffixed to generated links (primarily HOSTLINK, but also just in case added to TREELINK and TREELINK_JSON, see upsstats.html(5) for more details).
SEE ALSO
upsset.cgi(8), upsstats.cgi(8), upsimage.cgi(8)
Internet resources:
The NUT (Network UPS Tools) home page: https://www.networkupstools.org/historic/v2.8.5/
| 04/07/2026 | Network UPS Tools 2.8.5 |