debug
This commit is contained in:
parent
47f7a1cd68
commit
e19f4b182d
1 changed files with 4 additions and 1 deletions
|
@ -57,16 +57,19 @@ ssh_password=${ssh_password:-password}
|
|||
ssh_host=${ssh_host:-192.168.2.1}
|
||||
name=${name:-mikrotik}
|
||||
anzahl_cpu=4
|
||||
c=0
|
||||
|
||||
function get_cpu_labels {
|
||||
echo multigraph cpu_load_detail_$name
|
||||
c=0
|
||||
|
||||
#while read -r line; do
|
||||
# anzahl_cpu=$(echo $line grep cpu-count: | sed -r 's/(cpu-count: )([0-9]+)/\2/g' | tr -dc '[0-9]')
|
||||
#done <<< "$data"
|
||||
echo DEBUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUG! : $anzahl_cpu
|
||||
while [ "$c" -lt "$anzahl_cpu" ]; do
|
||||
echo in schleife cpu
|
||||
while read -r line; do
|
||||
echo in schleife line
|
||||
echo $line | awk '/cpu"'"$c"'":/{
|
||||
print "cpu"'"$c"'"_load.label " "load" "cpu" "'"$c"'"
|
||||
print "cpu"'"$c"'"_irq.label " "irq" "cpu" "'"$c"'"
|
||||
|
|
Loading…
Reference in a new issue