mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
whitespace cleanup
This commit is contained in:
parent
b7e0cab72e
commit
94c0585a59
1 changed files with 22 additions and 22 deletions
|
@ -10,12 +10,12 @@ PRSTAT_OPTS="-Z -n 1,99 1 1"
|
|||
|
||||
if [ "$1" = 'autoconf' ]; then
|
||||
if [ -f $PRSTAT ]; then
|
||||
zones=`/usr/sbin/zoneadm list | wc -l`
|
||||
if [ $zones -gt 1 ]; then
|
||||
echo yes
|
||||
else
|
||||
echo yes
|
||||
fi
|
||||
zones=`/usr/sbin/zoneadm list | wc -l`
|
||||
if [ $zones -gt 1 ]; then
|
||||
echo yes
|
||||
else
|
||||
echo yes
|
||||
fi
|
||||
exit 0
|
||||
else
|
||||
echo no
|
||||
|
@ -26,18 +26,18 @@ fi
|
|||
if [ "$1" = 'config' ]; then
|
||||
echo 'graph_title zone memory usage'
|
||||
echo 'graph_args --upper-limit 100'
|
||||
echo 'graph_category system'
|
||||
stack=AREA
|
||||
echo 'graph_category system'
|
||||
stack=AREA
|
||||
$PRSTAT $PRSTAT_OPTS | sed '1,/^ZONEID/d' | grep -v '^Total' | while read i; do
|
||||
oIFS="$IFS"
|
||||
IFS='
|
||||
oIFS="$IFS"
|
||||
IFS='
|
||||
'
|
||||
set -$- $i
|
||||
name=$1
|
||||
label=$8
|
||||
set -$- $i
|
||||
name=$1
|
||||
label=$8
|
||||
printf "$name.label $label\n$name.draw $stack\n$name.warn 95\n"
|
||||
IFS="$oIFS"
|
||||
stack=STACK
|
||||
IFS="$oIFS"
|
||||
stack=STACK
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
@ -50,12 +50,12 @@ fi
|
|||
# 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
|
||||
oIFS="$IFS"
|
||||
IFS='%
|
||||
oIFS="$IFS"
|
||||
IFS='%
|
||||
'
|
||||
set -$- $i
|
||||
name=$1
|
||||
value=$5
|
||||
printf "$name.value $value\n"
|
||||
IFS="$oIFS"
|
||||
set -$- $i
|
||||
name=$1
|
||||
value=$5
|
||||
printf "$name.value $value\n"
|
||||
IFS="$oIFS"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue