mirror of
https://github.com/ranl/monitor-utils.git
synced 2024-11-22 15:33:43 +01:00
Fix SHELFINFO output and complete help.
This commit is contained in:
parent
d5a2688d57
commit
fc14520f7d
@ -287,10 +287,10 @@ $err
|
|||||||
-V <1|2c> SNMP version (default 1), some checks run only 2c
|
-V <1|2c> SNMP version (default 1), some checks run only 2c
|
||||||
-T <check type> Type of check, see bellow
|
-T <check type> Type of check, see bellow
|
||||||
-t <seconds> Timeout to SNMP session in seconds (default 5)
|
-t <seconds> Timeout to SNMP session in seconds (default 5)
|
||||||
|
|
||||||
-w <number> Warning Value (default 500)
|
-w <number> Warning Value (default 500)
|
||||||
-c <number> Critical Value (default 500)
|
-c <number> Critical Value (default 500)
|
||||||
-v <vol_path|aggr_name> Volume Name in format /vol/volname/ or aggregate name
|
-v <vol_path|aggr_name> Volume Name in format /vol/volname/
|
||||||
|
or aggregate name (not available in 7.x ONTAP)
|
||||||
-e <vol1[,vol2[,...]]> Exclude volumes from snap check (SNAPSHOT)
|
-e <vol1[,vol2[,...]]> Exclude volumes from snap check (SNAPSHOT)
|
||||||
-I Inform only, return OK every time (ignore -w and -c values)
|
-I Inform only, return OK every time (ignore -w and -c values)
|
||||||
-h This help
|
-h This help
|
||||||
@ -884,16 +884,15 @@ if("$opt{'check_type'}" eq "TEMP") {
|
|||||||
$perf_temp = "$perf_temp, temp_$shelf{'ShelfNumber'}=$1";
|
$perf_temp = "$perf_temp, temp_$shelf{'ShelfNumber'}=$1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
#else { print "$subkey->"; print "None "; }
|
||||||
{ print "$subkey->"; print "None "; }
|
|
||||||
|
|
||||||
if ("$opt{'check_type'}" eq "SHELF") {
|
if ("$opt{'check_type'}" eq "SHELF") {
|
||||||
if(($shelf{$subkey} ne "") and ($shelf{$subkey} ne "noSuchInstance")) { push(@shelf_err,"$addr $subkey,") }
|
if(($shelf{$subkey} ne "") and ($shelf{$subkey} ne "noSuchInstance")) { push(@shelf_err,"$addr $subkey,") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{ print "\n"; }
|
#{ print "\n"; }
|
||||||
##if ("$opt{'check_type'}" eq "SHELFINFO") { print "\n"; }
|
#if ("$opt{'check_type'}" eq "SHELF") { print "\n"; }
|
||||||
|
|
||||||
if($#shelf_err != -1) {
|
if($#shelf_err != -1) {
|
||||||
push(@errs,@shelf_err)
|
push(@errs,@shelf_err)
|
||||||
|
Loading…
Reference in New Issue
Block a user