apcupsd: add cgi module

Signed-off-by: Othmar Truniger <github@truniger.ch>
This commit is contained in:
Othmar Truniger
2015-02-21 18:11:57 +01:00
parent 10313e98af
commit dda1acfefa
4 changed files with 115 additions and 17 deletions
+64
View File
@@ -0,0 +1,64 @@
body {
color: black;
background: white;
}
div.Center {
text-align: center;
}
img {
border-style: none;
}
pre {
text-align: left;
}
strong {
color: red;
}
table.Outer {
color: black;
background: #60a0a0;
empty-cells: show; border: solid #60a0a0
}
th.Outer {
color: black;
background: #60b0b0
}
.Title {
font-size: 18pt;
}
.SubTitle {
font-size: 12pt;
}
.Empty {
color: black;
background: aqua;
}
.Fault {
color: black;
background: red;
}
.Label {
color: black;
background: aqua;
}
.Normal {
color: black;
background: lime;
}
.Warning {
color: black;
background: yellow;
}
+19
View File
@@ -0,0 +1,19 @@
# Network UPS Tools - hosts.conf
#
# This file does double duty - it lists the systems that multimon will
# monitor, and also specifies the systems that upsstats is allowed to
# watch. It keeps people from feeding random addresses to upsstats,
# among other things. upsimage also uses this file to know who it
# may speak to. upsfstats too.
#
# Usage: list systems running upsd that you want to monitor
#
# MONITOR <address> "<host description>"
#
# Please note, MONITOR must start in column 1 (no spaces permitted)
#
# Example:
# MONITOR 10.64.1.1 "Finance department"
# MONITOR 10.78.1.1 "Sierra High School data room #1"
#
MONITOR 127.0.0.1 "Local Host"