test
This commit is contained in:
parent
5538047dfe
commit
68c8fd769f
1 changed files with 3 additions and 1 deletions
|
@ -131,13 +131,15 @@ while read -r line; do
|
|||
if echo $line | grep 'write-sect-total:' > /dev/null; then
|
||||
echo $line | grep 'write-sect-total:' | awk '{ print "multigraph mikrotik_write_sect_total_graph_" "'"$name"'"; print "write_sect_total.value "$2 }'
|
||||
fi
|
||||
if echo $line | grep -A 100 'cpu0:' > /dev/null; then
|
||||
if echo $line | grep 'cpu-count' > /dev/null; then
|
||||
anzahl_cpu=$(echo $line | grep 'cpu-count:' | awk '{ print $2 }' | tr -dc '[:print:]')
|
||||
# tr?
|
||||
# error: ")syntax error: invalid arithmetic operator (error token is "
|
||||
# https://stackoverflow.com/questions/23816264/remove-all-special-characters-and-case-from-string-in-bash
|
||||
# --> https://www.shell-tips.com/bash/math-arithmetic-calculation/
|
||||
echo multigraph mikrotik_cpu_load_detailed_graph_$name
|
||||
echo vor schleife
|
||||
echo $line | grep cpu0
|
||||
c=0
|
||||
echo c $c
|
||||
echo anzahl $anzahl_cpu
|
||||
|
|
Loading…
Reference in a new issue