diff --git a/mikrotik/mt_system b/mikrotik/mt_system index d022529..fc13a8d 100644 --- a/mikrotik/mt_system +++ b/mikrotik/mt_system @@ -265,8 +265,11 @@ function get_memory_value { # suche jeweils den wert # gesamt + frei = benutzt mem_free=$(echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); print $2 }') + echo FREEEEEEEEEEEE: $mem_free mem_total=$(echo $line | awk '/total-memory:/{ gsub(/MiB/,"",$2); print $2 }') + echo TOTAAAAAAAAAAAAL: $mem_total mem_used=$(awk '{ print("'"mem_total"'" - "'"mem_free"'") }') + echo USEEEEEEEEEEED: $mem_used echo $line | awk '/total-memory:/{ print "used_memory.value " "'"$mem_used"'" }'