hosts.conf \- Access control for Network UPS Tools CGI programs
.SH"DESCRIPTION"
.sp
The CGI programs (\fBupsset.cgi\fR(8), \fBupsstats.cgi\fR(8), \fBupsimage.cgi\fR(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\&.
.SH"DIRECTIVES"
.PP
\fBMONITOR\fR\fIups\fR\fIdescription\fR
.RS4
The
\fIups\fR
element is in the form
upsname[@hostname[:port]]\&. To allow connections to a UPS called "snoopy" on a system called "doghouse" that runs upsd on port 7877, it would look like this:
.sp
.ifn\{\
.RS4
.\}
.nf
MONITOR snoopy@doghouse:7877 "Joe Cool"
.fi
.ifn\{\
.RE
.\}
.sp
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"\&.