test var namen

This commit is contained in:
Michael Grote 2021-09-22 09:29:14 +02:00
parent ea6fff0f7f
commit edb8d6fc65

View file

@ -291,10 +291,10 @@ function get_memory_label {
print "free_memory.label free memory";
print "graph_info Total, Used & free RAM.",
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 }'
$varcrit=$2*0.9;
$varwarn=$2*0.7;
print "used_memory.critical " $varcrit;
print "used_memory.warning " $varwarn }'
done <<< "$data"
}
function get_memory_value {