upsstats.htmlSection: Network UPS Tools (NUT) (5)Updated: Tue Jul 29 2003 |
upsstats.htmlSection: Network UPS Tools (NUT) (5)Updated: Tue Jul 29 2003 |
This file is used by upsstats.cgi(8) to generate status pages. Certain commands are recognized, and will be replaced with various status elements on the fly.
All commands must be alone on a line, and start and end with @. A line that has any extra characters before or after the @ will be passed through unchanged.
Some commands begin blocks - sections of the template that will be included, excluded, or repeated depending on certain parameters.
IFSUPP blocks may be contained within a FOREACHUPS block. Nesting and other combinations are not supported.
battery.charge - Battery charge - a percentage
battery.voltage - The charge on the battery in volts
ups.load - UPS load - percentage
input.voltage - Incoming utility voltage
output.voltage - Outgoing voltage (from the UPS)
input.frequency - Incoming utility frequency (Hz)
output.frequency - Outgoing utility frequency (Hz)
ups.temperature - UPS temperature
extra is where you can put additional definitions. Right now the valid definitions are colors for various parts of the bars drawn by upsimage.cgi. Possible color names are:
back_col - background color
scale_num_col - scale number color
summary_col - summary color (number at the bottom)
ok_zone_maj_col - major scale color for the normal ("ok") zone
ok_zone_min_col - minor scale color for the normal ("ok") zone
neutral_zone_maj_col - major scale color for the neutral zone
neutral_zone_min_col - minor scale color for the neutral zone
warn_zone_maj_col - major scale color for the warning zone
warn_zone_min_col - minor scale color for the warning zone
bar_col - the color of the bar in the middle
All colors are hex triplets - 0xff0000 is red, 0x00ff00 is green, and 0x0000ff is blue.
Examples:
@IMG battery.charge@
@IMG battery.charge back_col=0xff00ff bar_col=0xaabbcc@
@IMG input.voltage ok_zone_maj_col=0x123456@