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

repeated alerts when delay set #987

Open
simeonfelis opened this issue May 13, 2022 · 5 comments
Open

repeated alerts when delay set #987

simeonfelis opened this issue May 13, 2022 · 5 comments
Labels

Comments

@simeonfelis
Copy link
Contributor

when delay is set for an email alerter I receive mails every interval.

I checked every other configuration value regarding repeat, limit, vfc etc. but could not find a possible error in the configuration.

Reading alerter.py Alert.should_alert is beyond my understanding. I suggest rewriting the 5 level nested if-clauses. Changing something there will always cause regressions.

@jamesoff
Copy link
Owner

Yeah, I fell foul of this a while back too. I have a mostly-complete fix including improvements to that nest of ifs, I'll try to finish it up and get it merged.

@jamesoff jamesoff added the bug label May 24, 2022
@simeonfelis
Copy link
Contributor Author

I have also started reworking the should_alert() method. it's difficult not to break the API for Alerter implementations. I try to do something with logic tables, see a non-working draft in my branch: https://github.com/simeonfelis/simplemonitor/tree/rework_should_alert

What do you thiink? Should I wait for your changes?

@jamesoff
Copy link
Owner

That looks interesting; I'm travelling at the moment so let me see where I got up to once I get home, but I think your version looks like it would be worth pursuing.

@kz159
Copy link
Contributor

kz159 commented Dec 27, 2022

Hi! how is this issue going? just stumled across this bug too
Thanks for simplemonitor, btw, its awesome for my use cases

@jamesoff
Copy link
Owner

Afraid it's not gone very far due to work and other commitments during the remainder of last year, but I'll try to find time soon to look at it again.

Glad (apart from this) SimpleMonitor is working for you :)

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

No branches or pull requests

3 participants