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

Nagstamon not filtering DOWN hosts for DURATION #1042

Open
ipsarioit opened this issue Jun 12, 2024 · 1 comment
Open

Nagstamon not filtering DOWN hosts for DURATION #1042

ipsarioit opened this issue Jun 12, 2024 · 1 comment

Comments

@ipsarioit
Copy link

ipsarioit commented Jun 12, 2024

I am using this expression

[3-9]d|[1-9][1-9]d|[1-9][1-9][1-9]d|[1-9]y

in Nagstamon settings -> Filters -> "Regular expression for duration".

Purpose is to see only problem older than 3 days.

It works for Services (Criticals, Warnings, Unknows) - I don't see any "fresh" service.
But this setting is not filtering Hosts - I see any duration hosts.

Is that a bug or it just works like this?
Can I fix it somehow?

@HenriWahl
Copy link
Owner

Hi @ipsarioit,
sorry for the late reply.
You are right, right now this filter only applies to services:

if DurationIsFilteredOutByRE(service.duration, conf) is True:

Maybe a good startting point for adding the same filter to hosts too.

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