From 5498dc5e4fe8f732b4e3c92277dad75881419f51 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 2 Aug 2016 18:41:01 +0200 Subject: [PATCH] Fix that the first notification interval is incorrect fixes #12257 --- lib/icinga/notification.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/icinga/notification.cpp b/lib/icinga/notification.cpp index 804eb235c..d9897760c 100644 --- a/lib/icinga/notification.cpp +++ b/lib/icinga/notification.cpp @@ -351,6 +351,10 @@ void Notification::BeginExecuteNotification(NotificationType type, const CheckRe UpdateNotificationNumber(); double now = Utility::GetTime(); SetLastNotification(now); + + if (type == NotificationProblem && GetInterval() > 0) + SetNextNotification(now + GetInterval()); + if (type == NotificationProblem) SetLastProblemNotification(now); }