1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

whitespace cleanup

This commit is contained in:
Kenyon Ralph 2012-12-24 18:29:12 -08:00
parent b7e0cab72e
commit 94c0585a59

View file

@ -10,12 +10,12 @@ PRSTAT_OPTS="-Z -n 1,99 1 1"
if [ "$1" = 'autoconf' ]; then if [ "$1" = 'autoconf' ]; then
if [ -f $PRSTAT ]; then if [ -f $PRSTAT ]; then
zones=`/usr/sbin/zoneadm list | wc -l` zones=`/usr/sbin/zoneadm list | wc -l`
if [ $zones -gt 1 ]; then if [ $zones -gt 1 ]; then
echo yes echo yes
else else
echo yes echo yes
fi fi
exit 0 exit 0
else else
echo no echo no
@ -26,18 +26,18 @@ fi
if [ "$1" = 'config' ]; then if [ "$1" = 'config' ]; then
echo 'graph_title zone memory usage' echo 'graph_title zone memory usage'
echo 'graph_args --upper-limit 100' echo 'graph_args --upper-limit 100'
echo 'graph_category system' echo 'graph_category system'
stack=AREA stack=AREA
$PRSTAT $PRSTAT_OPTS | sed '1,/^ZONEID/d' | grep -v '^Total' | while read i; do $PRSTAT $PRSTAT_OPTS | sed '1,/^ZONEID/d' | grep -v '^Total' | while read i; do
oIFS="$IFS" oIFS="$IFS"
IFS=' IFS='
' '
set -$- $i set -$- $i
name=$1 name=$1
label=$8 label=$8
printf "$name.label $label\n$name.draw $stack\n$name.warn 95\n" printf "$name.label $label\n$name.draw $stack\n$name.warn 95\n"
IFS="$oIFS" IFS="$oIFS"
stack=STACK stack=STACK
done done
exit 0 exit 0
fi fi
@ -50,12 +50,12 @@ fi
# Total: 207 processes, 709 lwps, load averages: 0.05, 0.06, 0.11$ # Total: 207 processes, 709 lwps, load averages: 0.05, 0.06, 0.11$
$PRSTAT $PRSTAT_OPTS | sed '1,/^ZONEID/d' | grep -v '^Total' | while read i; do $PRSTAT $PRSTAT_OPTS | sed '1,/^ZONEID/d' | grep -v '^Total' | while read i; do
oIFS="$IFS" oIFS="$IFS"
IFS='% IFS='%
' '
set -$- $i set -$- $i
name=$1 name=$1
value=$5 value=$5
printf "$name.value $value\n" printf "$name.value $value\n"
IFS="$oIFS" IFS="$oIFS"
done done