diff options
-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) |