summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmunin/ups_8
1 files changed, 6 insertions, 2 deletions
diff --git a/munin/ups_ b/munin/ups_
index 973203f..0237311 100755
--- a/munin/ups_
+++ b/munin/ups_
@@ -39,7 +39,6 @@ fi
function voltages() {
if [ "$1" = "config" ]; then
-
echo "graph_title $UPS voltages"
echo "graph_args --base 1000 -l 0"
echo "graph_vlabel Volt"
@@ -147,7 +146,12 @@ function temperature() {
fi
}
-[ "$1" = "config" ] && echo "graph_category sensors"
+if [ "$1" = "config" ]; then
+ echo "graph_category sensors"
+ if [ -n "$host" ]; then
+ echo "host_name $host"
+ fi
+fi
case "$FUNCTION" in
voltages)