mirror of
https://github.com/ranl/monitor-utils.git
synced 2025-04-11 01:43:39 +02:00
dont require ending slash
This commit is contained in:
parent
b01a3064fa
commit
fac0423484
@ -348,7 +348,7 @@ This is $script_name in version $script_version.
|
||||
-t <seconds> Timeout to SNMP session in seconds (default 5)
|
||||
-w <number> Warning Value (default 500)
|
||||
-c <number> Critical Value (default 500)
|
||||
-v <vol_path|aggr_name> Volume Name in format /vol/volname/
|
||||
-v <vol_path|aggr_name> Volume Name in format /vol/volname
|
||||
or aggregate name (not available in 7.x ONTAP)
|
||||
For available values use any word, such as \'-v whatever\'
|
||||
-e <vol1[,vol2[,...]]> Exclude volumes from snap check (SNAPSHOT/SNAPSHOTAGE)
|
||||
@ -510,8 +510,8 @@ FSyntaxError("Missing -H") unless defined $opt{'filer'};
|
||||
FSyntaxError("Missing -C") unless defined $opt{'community'};
|
||||
FSyntaxError("Missing -T") unless defined $opt{'check_type'};
|
||||
if($opt{'vol'}) {
|
||||
if ( !( ($opt{'vol'} =~ m#^/vol/.*/$#) or ($opt{'vol'} =~ m#^[^/]*$#) ) ) {
|
||||
FSyntaxError("$opt{'vol'} format is '/vol/volname/' or 'aggregate_name'! For listing available names use any text such as '-v whatever'.");
|
||||
if ( !( ($opt{'vol'} =~ m#^/vol/.*$#) or ($opt{'vol'} =~ m#^[^/]*$#) ) ) {
|
||||
FSyntaxError("$opt{'vol'} format is '/vol/volname' or 'aggregate_name'! For listing available names use any text such as '-v whatever'.");
|
||||
}
|
||||
}
|
||||
if($opt{'crit'} and $opt{'warn'}) {
|
||||
|
Loading…
Reference in New Issue
Block a user