NAME
upsimage.cgi - Image-generating helper for upsstats.cgi
SYNOPSIS
Note
|
Two NUT websites
This version of the page reflects NUT release v2.7.4 with codebase commited 0b4bfddbc at 2016-03-09T14:24:11+01:00 Options, features and capabilities in current development (and future releases) are detailed on the main site and may differ from ones described here. |
upsimage.cgi
Note
|
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. |
DESCRIPTION
upsimage.cgi generates the graphical bars that make up the right side of the page generated by upsstats.cgi(8). These represent the current battery charge, utility voltage, and UPS load where available.
The images are in PNG format, and are created by linking to Boutell’s excellent gd library.
ACCESS CONTROL
upsstats will only talk to upsd(8) servers that have been defined in your hosts.conf(5). If it complains about "Access to that host is not authorized", check that file first.
FILES
SEE ALSO
Internet resources:
The gd home page: http://libgd.bitbucket.org
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/