warn mem
This commit is contained in:
parent
fcc6be3dda
commit
ea6fff0f7f
1 changed files with 5 additions and 5 deletions
|
@ -23,9 +23,6 @@
|
|||
# TODO:
|
||||
# - [ ] free-hdd-space: 4760.0KiB
|
||||
# - [ ] total-hdd-space: 16.3MiB
|
||||
# - [ ] free-memory: 210.2MiB
|
||||
# - [ ] total-memory: 256.0MiB
|
||||
# - [ ] limit als % von total + war noch
|
||||
# - [ ] uptime: 1w4d22h29m28s
|
||||
# - [ ] linter
|
||||
# - [ ] doku für munin mit ==HEAD usw.
|
||||
|
@ -293,8 +290,11 @@ function get_memory_label {
|
|||
print "used_memory.label used memory";
|
||||
print "free_memory.label free memory";
|
||||
print "graph_info Total, Used & free RAM.",
|
||||
gsub(/MiB/,"",$2); $zw=$2*0.9;
|
||||
print "used_memory.critical " $zw }'
|
||||
gsub(/MiB/,"",$2);
|
||||
$var_crit=$2*0.9;
|
||||
$var_warn=$2*0.7;
|
||||
print "used_memory.critical " $var_crit;
|
||||
print "used_memory.warning " $var_warn }'
|
||||
done <<< "$data"
|
||||
}
|
||||
function get_memory_value {
|
||||
|
|
Loading…
Reference in a new issue