einrückung

This commit is contained in:
Michael Grote 2021-09-21 14:18:03 +02:00
parent bd59c10c00
commit ff183165cc

View file

@ -80,10 +80,10 @@ function get_cpu_labels {
while [ "$c" -lt "$anzahl_cpu" ]; do
while read -r line; do
echo $line | grep cpu$c | awk '{
print "cpu"'"$c"'"_load.label " "load " "cpu" "'"$c"'"
print "cpu"'"$c"'"_irq.label " "irq " "cpu" "'"$c"'"
print "cpu"'"$c"'"_disk.label " "disk " "cpu" "'"$c"'"
}'
print "cpu"'"$c"'"_load.label " "load " "cpu" "'"$c"'"
print "cpu"'"$c"'"_irq.label " "irq " "cpu" "'"$c"'"
print "cpu"'"$c"'"_disk.label " "disk " "cpu" "'"$c"'"
}'
done <<< "$data"
c=$(( $c + 1 ))
done
@ -94,13 +94,13 @@ function get_cpu_values {
while [ "$c" -lt "$anzahl_cpu" ]; do
while read -r line; do
echo $line | grep cpu$c | awk '{
gsub(/%/,"",$3);
gsub(/%/,"",$4);
gsub(/%/,"",$5);
print "cpu"'"$c"'"_load.value " $3
print "cpu"'"$c"'"_irq.value " $4
print "cpu"'"$c"'"_disk.value " $5
}'
gsub(/%/,"",$3);
gsub(/%/,"",$4);
gsub(/%/,"",$5);
print "cpu"'"$c"'"_load.value " $3
print "cpu"'"$c"'"_irq.value " $4
print "cpu"'"$c"'"_disk.value " $5
}'
done <<< "$data"
c=$(( $c + 1 ))
done
@ -238,8 +238,5 @@ exit 0
# IN DOKU mit erklärung
# name dnamisch
# areastack cpu details
# bezechung ohne in
#normal cpu mit rein
#limits für cpu