diff --git a/mikrotik/mt_system b/mikrotik/mt_system index 47d28bb..5cb700e 100644 --- a/mikrotik/mt_system +++ b/mikrotik/mt_system @@ -202,7 +202,7 @@ function get_write_sect_since_reboot_value { function get_temperature_label { while read -r line; do - echo "$line" | awk '/temperature:/{ + echo "$line" | awk '/temperature/{ print "multigraph temperature_graph_""'"$name"'"; print "graph_title temperature " "'"$name"'"; print "graph_vlabel °C"; @@ -218,7 +218,7 @@ function get_temperature_value { get_ros_version while read -r line; do if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then - echo "$line" | awk '/temperature:/{ + echo "$line" | awk '/temperature/{ print "multigraph temperature_graph_""'"$name"'"; }' fi