test critical
This commit is contained in:
parent
068ef07535
commit
0f13b6e964
1 changed files with 2 additions and 1 deletions
|
@ -291,6 +291,8 @@ function get_memory_label {
|
||||||
print "free_memory.label free memory";
|
print "free_memory.label free memory";
|
||||||
print "graph_info Total, Used & free RAM."
|
print "graph_info Total, Used & free RAM."
|
||||||
}'
|
}'
|
||||||
|
echo $line | awk '/free-memory:/{ gsub(/MiB/,"",$2); $zw=$2*0.9; print used_memory.critical $zw }'
|
||||||
|
|
||||||
done <<< "$data"
|
done <<< "$data"
|
||||||
}
|
}
|
||||||
function get_memory_value {
|
function get_memory_value {
|
||||||
|
@ -314,7 +316,6 @@ function get_memory_value {
|
||||||
# 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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#Kibibyte = Mebibyte x (8x1024x1024) / (8x1024)
|
#Kibibyte = Mebibyte x (8x1024x1024) / (8x1024)
|
||||||
|
|
Loading…
Reference in a new issue