zpool_fragmentation: bash-lint
This commit is contained in:
parent
e79510f163
commit
f2208bd01b
1 changed files with 4 additions and 4 deletions
|
@ -20,10 +20,10 @@ if [ "$1" = "config" ]; then
|
|||
# https://superuser.com/questions/284187/bash-iterating-over-lines-in-a-variable
|
||||
while read -r line; do
|
||||
# setze label
|
||||
echo $line | awk '{print $1".label " $1}'
|
||||
echo "$line" | awk '{print $1".label " $1}'
|
||||
# setze warn-limits
|
||||
echo $line | awk '{print $1".warning " 50}'
|
||||
echo $line | awk '{print $1".critical " 75}'
|
||||
echo "$line" | awk '{print $1".warning " 50}'
|
||||
echo "$line" | awk '{print $1".critical " 75}'
|
||||
done <<< "$list"
|
||||
# setze optionen
|
||||
echo 'graph_title ZFS storage pool - fragmentation' # Titelzeile
|
||||
|
@ -40,6 +40,6 @@ fi
|
|||
while read -r line; do
|
||||
# gebe wert aus
|
||||
# <name>.value <wert>
|
||||
echo $line | awk '{print $1".value " $7}'
|
||||
echo "$line" | awk '{print $1".value " $7}'
|
||||
done <<< "$list"
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue