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

Consult Checkable#state_before_suppression only if there's a suppression #10032

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Al2Klimov
Copy link
Member

It's only set along with adding NotificationProblem or NotificationRecovery to Checkable#suppressed_notifications and never reset. Also its default, ServiceOK, is an actual state. Not being aware of these facts confuses Checkable#NotificationReasonApplies() which is a condition for cleaning Notification#suppressed_notifications in FireSuppressedNotifications(). I.e. suppressed notifications can get lost.

fixes #10025

It's only set along with adding NotificationProblem or NotificationRecovery
to Checkable#suppressed_notifications and never reset. Also its default,
ServiceOK, is an actual state. Not being aware of these facts confuses
Checkable#NotificationReasonApplies() which is a condition for cleaning
Notification#suppressed_notifications in FireSuppressedNotifications().
I.e. suppressed notifications can get lost.
@cla-bot cla-bot bot added the cla/signed label Mar 28, 2024
@icinga-probot icinga-probot bot added area/configuration DSL, parser, compiler, error handling bug Something isn't working ref/IP labels Mar 28, 2024
@Al2Klimov
Copy link
Member Author

Test

  1. Get checkable hard not-OK with a problem notification
  2. Await being outside your notification time period
  3. Get checkable OK again
  4. Await being inside your notification time period

Before: no recovery notification

After: a recovery notification

@Al2Klimov Al2Klimov added this to the 2.15.0 milestone Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working cla/signed ref/IP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing notification after recovery outside the time period
1 participant