upsimage.cgi \- Image\-generating helper for upsstats\&.cgi
.SH"SYNOPSIS"
.sp
\fBupsimage\&.cgi\fR
.ifn\{\
.sp
.\}
.RS4
.it1an-trap
.nran-no-space-flag1
.nran-break-flag1
.br
.ps+1
\fBNote\fR
.ps-1
.br
.sp
As a CGI program, this should be invoked through your web server\&. If you run it from the command line, it will either complain about unauthorized access or spew a PNG at you\&.
.sp.5v
.RE
.SH"DESCRIPTION"
.sp
\fBupsimage\&.cgi\fR generates the graphical bars that make up the right side of the page generated by \fBupsstats.cgi\fR(8)\&. These represent the current battery charge, utility voltage, and UPS load where available\&.
.sp
The images are in PNG format, and are created by linking to Boutell\(cqs excellent gd library\&.
.SH"ACCESS CONTROL"
.sp
upsstats will only talk to \fBupsd\fR(8) servers that have been defined in your \fBhosts.conf\fR(5)\&. If it complains about "Access to that host is not authorized", check that file first\&.
.SH"FILES"
.sp
\fBhosts.conf\fR(5)
.SH"SEE ALSO"
.sp
\fBupsd\fR(8), \fBupsstats.cgi\fR(8)
.SS"Internet resources:"
.sp
The gd home page: http://www\&.boutell\&.com/gd/
.sp
The NUT (Network UPS Tools) home page: http://www\&.networkupstools\&.org/