-
Notifications
You must be signed in to change notification settings - Fork 573
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
Icinga 2.12.3 is sending notifications twice for BPM Checks if timeperiod is starting #8667
Comments
I tried to reproduce this and did not succeed so far. Can you please also share the corresponding notification object/apply rule? |
Sure - here we are.
|
I gave this another attempt, still no success with reproducing this. But there's something that surprises me: all the notification objects you posted have Can you reproduce the issue with Icinga logging at level |
I tried to find something. I enabled the debug log too, but i can't find a helpfull informations. debug.log:[2021-03-18 13:10:24 +0100] notice/NotificationComponent: Reminder notification 'fancyhost!fancycheck!fancynotification': Notification was sent out once and interval=0 disables reminder notifications. And this one I missed for the check I reported with the first posting. Maybe it's possible for you to give me a call (Eric Lippmann knows my phone number) to have a look inside. |
Can you share the debug log if I give you an upload link to our Nextcloud? Looking at these would probably be the first thing I'd to if we had a call anyways. If you can't, can you please instead share all log messages containing the name of an affected notification? Also, can you answer the following question, then I'd have another look at the source to see if I can figure something out and depending on the result, decide if it makes sense to have a look at this together.
|
And one more question: what's the zone of the service object? From the config snippets I can see that it has |
Still wasn't able to reproduce this, but found a very helpful clue on what is happening:
I'm pretty sure I've found the cause with #8708. Before sending a reminder notification (and the mentioned log message), we check if problem notifications are suppressed: icinga2/lib/notification/notificationcomponent.cpp Lines 235 to 237 in 2cb995e
But here we only check if problem notifications are suppressed on the checkable and not on the notification object itself. I found only one possible race condition that would run into this issue. This should be quite hard to hit, but could happen in a very large environment. @tuxracer1337 I've build custom packages for SLES 12.5, so you can test if the fix resolves your issue: |
@tuxracer1337 any news on this? Did the fix resolve it for you? |
Describe the bug
Since we upgraded from icinga 2.11.5 to Icinga 2.12.3 we have a new behavior for notifications by BPM Checks.
If the check changes from Ok to CRIT outside of time period and then the notification time period beginns, Icinga send all notifications twice in less than 1 minute for the BPM checks.
In the logs we can see one notification is triggert as "Sending reminder 'Problem'"....
and the second notification is triggert as "Sending 'Problem'"....
This is new in icinga 2.12.3, beacuse we verified it with older logs and there is only "Sending reminder 'Problem'....." and not the second one.
The following double log entries we have for each user we want to send notifications for this check.
[2021-03-03 07:15:00 +0100] information/Notification: Sending reminder 'Problem' notification 'DUMMYHOST!BPM-CHECK!N-TICKETSYSTEM-SERVICES' for user 'ticket'
[2021-03-03 07:15:00 +0100] information/Notification: Completed sending 'Problem' notification ''DUMMYHOST!BPM-CHECK!N-TICKETSYSTEM-SERVICES' for checkable ''DUMMYHOST!BPM-CHECK!N-TICKETSYSTEM-SERVICES' for user 'ticket' using command 'NC-TICKET-SERVICES'.
[2021-03-03 07:15:16 +0100] information/Notification: Sending 'Problem' notification 'DUMMYHOST!BPM-CHECK!N-TICKETSYSTEM-SERVICES' for user 'ticket'
[2021-03-03 07:15:16 +0100] information/Notification: Completed sending 'Problem' notification 'DUMMYHOST!BPM-CHECK!N-TICKETSYSTEM-SERVICES' for user 'ticket' using command 'NC-TICKET-SERVICES''.
And it isn't also related to a notification command, because all defined notification commands have the same behavior.
To Reproduce
Environment
icinga2 --version
): 2.12.3icinga2 feature list
): api checker ido-mysql influxdb mainlog notificationThe text was updated successfully, but these errors were encountered: