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 alerter notifications when using times_type / time_lower / time_upper / delay=True #1348

Open
cpina opened this issue Feb 17, 2024 · 0 comments
Labels

Comments

@cpina
Copy link
Contributor

cpina commented Feb 17, 2024

Situation: I have three monitors that fail.
I used to have (simplified):

[monitor]
interval=5

[reporting]
loggers=logfile,html
alerters=email

[email]
type=email
tz=Europe/Madrid
host=mail.example.org
from=User <[email protected]>
[email protected]
username=user01
password=the_password
ssl=starttls

Now I've added to this alerter:

times_type=not
time_lower=04:00
time_upper=05:00
delay=true

(side note: ideally I would add this to a monitor (in this case, think of a loadavg that spikes at night due to some night jobs... but here I am setting it up for everything from 4am to 5am).

As soon as I add the times_type / timer_lower / time_upper / delay: simplemonitor sends to the email that the three failing monitors are failing on each check (after the tolerance period).

If I remove the "delay=true": it does not send repeatedly, only once on simplemonitor start (after the tolerance...).

@jamesoff jamesoff added the bug label Feb 18, 2024
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

2 participants