test awk
This commit is contained in:
parent
41deb42b58
commit
b131b96ded
1 changed files with 1 additions and 4 deletions
|
@ -144,10 +144,7 @@ while read -r line; do
|
||||||
while [ "$c" -lt "$anzahl_cpu" ]
|
while [ "$c" -lt "$anzahl_cpu" ]
|
||||||
do
|
do
|
||||||
echo in schleife
|
echo in schleife
|
||||||
echo $line | grep cpu$c | sed 's/%//g' | awk '{
|
echo $line | grep cpu$c | sed 's/%//g' | awk '{ print "cpu_load_detailed_graph_load cpu" "'"$c"'" $3; print "cpu_load_detailed_graph_irq cpu" "'"$c"'" $4; print "cpu_load_detailed_graph_disk cpu" "'"$c"'" $5}'
|
||||||
print "cpu_load_detailed_graph_load" "'"cpu$c"'" $3;
|
|
||||||
print "cpu_load_detailed_graph_irq" "'"cpu$c"'" $4;
|
|
||||||
print "cpu_load_detailed_graph_disk" "'"cpu$c"'" $5}'
|
|
||||||
c=$(( $c + 1 ))
|
c=$(( $c + 1 ))
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue