1
0
mirror of https://github.com/ranl/monitor-utils.git synced 2025-04-04 06:53:40 +02:00

missed a spot

This commit is contained in:
Jacob Sohl 2016-04-12 18:12:43 -07:00
parent fac0423484
commit 9fe5aff0d8

View File

@ -773,7 +773,7 @@ if("$opt{'check_type'}" eq "TEMP") {
$stat = $ERRORS{'WARNING'};
$msg = "WARN: Unknown volume path or aggregate name '$opt{'vol'}'. Available values:";
foreach my $key (sort keys %$r_vol_tbl) {
next if ( !( ($$r_vol_tbl{$key} =~ m#^/vol/.*/$#) or ($$r_vol_tbl{$key} =~ m#^[^/]*$#) ) );
next if ( !( ($$r_vol_tbl{$key} =~ m#^/vol/.*$#) or ($$r_vol_tbl{$key} =~ m#^[^/]*$#) ) );
$msg .= " $$r_vol_tbl{$key}"
}
}