mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Indentation
This commit is contained in:
parent
51e003fe8f
commit
adc7b71e2a
1 changed files with 10 additions and 10 deletions
|
@ -114,7 +114,7 @@ SPALL="SPA SPB"
|
|||
NAVICLI="/nas/sbin/navicli"
|
||||
|
||||
ssh_check_cmd() {
|
||||
ssh -q $username@$1 "/nasmcd/sbin/getreason | grep -w slot_\`/nasmcd/sbin/t2slot\` | cut -d- -f1"
|
||||
ssh -q $username@$1 "/nasmcd/sbin/getreason | grep -w slot_\`/nasmcd/sbin/t2slot\` | cut -d- -f1"
|
||||
}
|
||||
|
||||
|
||||
|
@ -125,7 +125,7 @@ check_conf () {
|
|||
fi
|
||||
|
||||
if [ -z "$cs_addr" ]; then
|
||||
echo "No control station addresses ('cs_addr' environment variable)!"
|
||||
echo "No control station addresses ('cs_addr' environment variable)!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
@ -146,17 +146,17 @@ check_conf () {
|
|||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
check_conf_ans=$(check_conf)
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "yes"
|
||||
else
|
||||
echo "no ($check_conf_ans)"
|
||||
fi
|
||||
exit 0
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "yes"
|
||||
else
|
||||
echo "no ($check_conf_ans)"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
check_conf
|
||||
if [[ $? -eq 1 ]]; then
|
||||
exit 1;
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
SSH="ssh -q $username@$PRIMARY_CS "
|
||||
|
@ -233,7 +233,7 @@ if [ "$1" = "config" ] ; then
|
|||
EOF
|
||||
echo -n "graph_order "
|
||||
while read -r LUN ; do
|
||||
echo -n "${LUN}_busyticks ${LUN}_idleticks ${LUN}_bta=${LUN}_busyticks_spa ${LUN}_idleticks_spa ${LUN}_btb=${LUN}_busyticks_spb ${LUN}_idleticks_spb "
|
||||
echo -n "${LUN}_busyticks ${LUN}_idleticks ${LUN}_bta=${LUN}_busyticks_spa ${LUN}_idleticks_spa ${LUN}_btb=${LUN}_busyticks_spb ${LUN}_idleticks_spb "
|
||||
done <<< "$LUNLIST"
|
||||
echo ""
|
||||
while read -r LUN ; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue