summaryrefslogtreecommitdiff
path: root/munin/ups_
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-09-13 06:38:43 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-09-13 06:38:43 +0000
commit757a8acec55d0bb2caaf7ab254d80115ab1223dd (patch)
treed26e37f85d002b6069774d84131f7bb3190bdebc /munin/ups_
parentcf09119bb2067e31634133097527775580330875 (diff)
also echo host, if defined
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@183 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'munin/ups_')
-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)