Feature request check_cdot_snapshots.pl: provide option to filter on snapshot names as well
Opened this issue · 1 comments
log1-c commented
Currently the script allows to filter/exclude volumes by name/regex.
It would be nice to have this option for the snapshot names as well.
E.g. to filter out snapshots containing the string "snapmirror".
log1-c commented
Maybe something like this?
@@ -138,6 +138,10 @@
push(@manually_excluded_snapshots,"$vol_name/$snap_name\n");
next;
}
+ elsif($snap_name =~ m/$excludeliststr/){
+ push(@manually_excluded_snapshots,"$vol_name/$snap_name\n");
+ next;
+ }
}
if($age >= $AgeOpt){