diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-09-13 06:38:43 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-09-13 06:38:43 +0000 |
commit | 757a8acec55d0bb2caaf7ab254d80115ab1223dd (patch) | |
tree | d26e37f85d002b6069774d84131f7bb3190bdebc | |
parent | cf09119bb2067e31634133097527775580330875 (diff) |
also echo host, if defined
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@183 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | munin/ups_ | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |