test
This commit is contained in:
parent
77f6359621
commit
068ef07535
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue