upsimage.cgi - Image-generating helper for upsstats.cgi
Contents
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.
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.
Files
hosts.conf(5)
Name
upsimage.cgi - Image-generating helper for upsstats.cgi
See Also
upsd(8), upsstats.cgi(8) Internetresources: • The NUT (Network UPS Tools) home page: https://www.networkupstools.org/historic/v2.8.3/ • The gd home page: http://libgd.bitbucket.org Network UPS Tools 2.8.3 07/08/2025 UPSIMAGE.CGI(8)
Synopsis
upsimage.cgiNote
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.
