mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51: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"
|
NAVICLI="/nas/sbin/navicli"
|
||||||
|
|
||||||
ssh_check_cmd() {
|
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
|
fi
|
||||||
|
|
||||||
if [ -z "$cs_addr" ]; then
|
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
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -146,17 +146,17 @@ check_conf () {
|
||||||
|
|
||||||
if [ "$1" = "autoconf" ]; then
|
if [ "$1" = "autoconf" ]; then
|
||||||
check_conf_ans=$(check_conf)
|
check_conf_ans=$(check_conf)
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "yes"
|
echo "yes"
|
||||||
else
|
else
|
||||||
echo "no ($check_conf_ans)"
|
echo "no ($check_conf_ans)"
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_conf
|
check_conf
|
||||||
if [[ $? -eq 1 ]]; then
|
if [[ $? -eq 1 ]]; then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SSH="ssh -q $username@$PRIMARY_CS "
|
SSH="ssh -q $username@$PRIMARY_CS "
|
||||||
|
@ -233,7 +233,7 @@ if [ "$1" = "config" ] ; then
|
||||||
EOF
|
EOF
|
||||||
echo -n "graph_order "
|
echo -n "graph_order "
|
||||||
while read -r LUN ; do
|
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"
|
done <<< "$LUNLIST"
|
||||||
echo ""
|
echo ""
|
||||||
while read -r LUN ; do
|
while read -r LUN ; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue