Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request check_cdot_snapshots.pl: provide option to filter on snapshot names as well #50

Open
log1-c opened this issue Jan 21, 2021 · 1 comment

Comments

@log1-c
Copy link
Contributor

log1-c commented Jan 21, 2021

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
Copy link
Contributor Author

log1-c commented Jan 21, 2021

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){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant