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

Regex filter for duration is not working properly #964

Open
unknown-73 opened this issue Sep 6, 2023 · 2 comments
Open

Regex filter for duration is not working properly #964

unknown-73 opened this issue Sep 6, 2023 · 2 comments

Comments

@unknown-73
Copy link

Background:

We want to filter the alerts based on the duration. Alters that have a duration under 10 min should not be displayed in nagstamon.
For this scenario we tried multiple regex filters:

  1. m|s --> we tried this because the other filters were not working either
  2. s --> we tried this because the other filters were not working either
  3. s$|^\d{1} m$ --> this was the actual filter, but it does not always work

With these filters applied we are still getting alerts for services or hosts with a duration of ex. "241s" ; "39.4s" ; "7m"

@unknown-73
Copy link
Author

Is there any solution to this problem?

@HenriWahl
Copy link
Owner

@unknown-73 with the correct regex ist should work. Maybe you can find some with https://regex101.com ?

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

2 participants