This commit is contained in:
Michael Grote 2021-09-21 21:19:29 +02:00
parent 77f6359621
commit 068ef07535

View file

@ -294,6 +294,8 @@ function get_memory_label {
done <<< "$data" done <<< "$data"
} }
function get_memory_value { function get_memory_value {
get_mem_total
get_mem_free
if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then if [ "$MUNIN_CAP_DIRTYCONFIG" = "0" ] || [ -z "$MUNIN_CAP_DIRTYCONFIG" ]; then
echo multigraph memory_$name echo multigraph memory_$name
fi fi
@ -311,7 +313,6 @@ function get_memory_value {
done <<< "$data" done <<< "$data"
# berechne used-memory # berechne used-memory
# gesamt + frei = benutzt # gesamt + frei = benutzt
echo used_memory.value $(echo $mem_total-$mem_free| bc) echo used_memory.value $(echo $mem_total-$mem_free| bc)
# prufe noch ob war gesetzt # prufe noch ob war gesetzt
} }