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

Evaluate next line after match found #50

Open
whatyoudoiswhatyouare opened this issue Mar 9, 2020 · 1 comment
Open

Evaluate next line after match found #50

whatyoudoiswhatyouare opened this issue Mar 9, 2020 · 1 comment

Comments

@whatyoudoiswhatyouare
Copy link

Hi,

I am using check_logfiles alot & am quite happy with it. What I could not resolve so far is this:

If a critical match is found in line n, I want to hold off ringing the alarm and evaluate the next line n+1 instead. If it matches pattern ABC, I want to ignore and ring the alarm if it does not.

So if my critical pattern was ERROR, I want that these 2 would be ignored:

ERROR global catastrophical error:
just a test though

But here, a critical error should be raised:

ERROR global catastrophical error:
somethin really bad happened that should be investigated

Any hint how this can be done with a supersmartscript?

Thanks!

@whatyoudoiswhatyouare
Copy link
Author

Hi @lausser, any pointers on the above? Thanks!

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