debug grep

This commit is contained in:
Michael Grote 2021-09-19 18:59:59 +02:00
parent b131b96ded
commit eafb01bea4

View file

@ -140,11 +140,11 @@ while read -r line; do
echo multigraph mikrotik_cpu_load_detailed_graph_$name
c=0
echo c $c
echo anzal $anzahl_cpu
echo anzahl $anzahl_cpu
while [ "$c" -lt "$anzahl_cpu" ]
do
echo in schleife
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}'
echo $line | grep cpu$c
c=$(( $c + 1 ))
done
fi