This commit is contained in:
Michael Grote 2021-09-20 16:04:31 +02:00
parent 8efb312844
commit 1d526efe8f

View file

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