graph_info

This commit is contained in:
Michael Grote 2021-09-21 21:09:17 +02:00
parent 605635b05b
commit 406ff963fb

View file

@ -81,7 +81,8 @@ function get_voltage_label {
print "graph_vlabel volt";
print "graph_category mikrotik";
print "graph_args -l 0";
print "voltage.label voltage"
print "voltage.label voltage";
print "graph_info Input Voltage."
}'
done <<< "$data" # der variable data
}
@ -115,7 +116,8 @@ function get_bad_blocks_label {
print "graph_args -l 0 --upper-limit 100";
print "bad_blocks.label bad_blocks";
print "bad_blocks.warning 2";
print "bad_blocks.critical 25"
print "bad_blocks.critical 25";
print "graph_info Percentage of Bad Blocks."
}'
done <<< "$data"
}
@ -141,7 +143,8 @@ function get_write_sect_total_label {
print "graph_vlabel count";
print "graph_category mikrotik";
print "graph_args -l 0";
print "write_sect_total.label write_sect_total"
print "write_sect_total.label write_sect_total";
print "graph_info Total sector writes."
}'
done <<< "$data"
}
@ -166,7 +169,8 @@ function get_write_sect_since_reboot_label {
print "graph_vlabel count";
print "graph_category mikrotik";
print "graph_args -l 0";
print "write_sect_since_reboot.label write_sect_since_reboot"
print "write_sect_since_reboot.label write_sect_since_reboot";
print "graph_info Total Sector writes since last reboot."
}'
done <<< "$data"
}
@ -220,6 +224,8 @@ function get_cpu_label {
echo cpu_total.label total load
echo cpu_total.warning 75
echo cpu_total.critical 90
echo graph_info Total CPU Load and Load, IRQ and Disk per Core.
while [ "$c" -lt "$anzahl_cpu" ]; do
while read -r line; do
echo $line | grep cpu$c | awk '{
@ -268,6 +274,7 @@ function get_memory_label {
print "total_memory.label total memory";
print "used_memory.label used memory";
print "free_memory.label free memory";
print "graph_info Total, Used & free RAM."
}'
done <<< "$data"
}