forked from wAmpIre/check_netappfiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestallv3.sh
executable file
·41 lines (32 loc) · 932 Bytes
/
testallv3.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
SECNAME=snmpuser
AUTHKEY=dont4get
if [ -z "$1" ]
then
echo Aufruf: $0 HOSTNAME
exit 1
fi
for TEST in global version cpu environment nvram sparedisk faileddisk cifs-users cifs-stats cluster snapmirror snapvault cacheage cp diskio tapeio ops
do
./check_netappfiler.py -H $1 -P3 -U $SECNAME -A $AUTHKEY -s $TEST
done
for NIC in lo e0a e0b e1a e1b
do
./check_netappfiler.py -H $1 -P3 -U $SECNAME -A $AUTHKEY -s ifstat -V $NIC
done
for FSIDX in aggr0 /vol/vol0
do
./check_netappfiler.py -H $1 -P3 -U $SECNAME -A $AUTHKEY -s fs -f $FSIDX -w 50 -c 75
done
for FSIDX in `seq 1 8`
do
./check_netappfiler.py -H $1 -P3 -U $SECNAME -A $AUTHKEY -s fs -f $FSIDX -w 50 -c 75
done
for FSIDX in aggr0 /vol/vol0
do
./check_netappfiler.py -H $1 -P3 -U $SECNAME -A $AUTHKEY -s vol -f $FSIDX -w 50% -c 75%
done
for FSIDX in 3 5 7
do
./check_netappfiler.py -H $1 -P3 -U $SECNAME -A $AUTHKEY -s vol -f $FSIDX -w 50% -c 75%
done