This commit is contained in:
Michael Grote 2021-09-20 15:59:50 +02:00
parent bea291eee9
commit 8efb312844

View file

@ -60,7 +60,9 @@ name=${name:-mikrotik}
function get_cpu_labels {
echo multigraph cpu_load_detail_$name
c=0
anzahl_cpu=$(echo $line | grep 'cpu-count:' | awk '{ print $2 }' | tr -dc '[:print:]')
while read -r line; do
anzahl_cpu=$(echo $line | grep 'cpu-count:' | awk '{ print $2 }' | tr -dc '[:print:]')
done <<< "$data"
echo DEBUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUG! : $anzahl_cpu
while [ "$c" -lt "$anzahl_cpu" ]; do
while read -r line; do