From 5619498762e0f1ac5eaeb8868c4eadf653663b0f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 9 Apr 2014 01:08:28 +0200 Subject: [PATCH] Fix re-notification interval. Refs #5909 --- components/notification/notificationcomponent.cpp | 2 ++ etc/icinga2/conf.d/notifications.conf | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/notification/notificationcomponent.cpp b/components/notification/notificationcomponent.cpp index 49ce3ba36..7982f2834 100644 --- a/components/notification/notificationcomponent.cpp +++ b/components/notification/notificationcomponent.cpp @@ -109,6 +109,8 @@ void NotificationComponent::NotificationTimerHandler(void) continue; } + notification->SetLastProblemNotification(now); + try { Log(LogInformation, "notification", "Sending reminder notification for object '" + checkable->GetName() + "'"); notification->BeginExecuteNotification(NotificationProblem, checkable->GetLastCheckResult(), false); diff --git a/etc/icinga2/conf.d/notifications.conf b/etc/icinga2/conf.d/notifications.conf index 7decaeb04..3101d3221 100644 --- a/etc/icinga2/conf.d/notifications.conf +++ b/etc/icinga2/conf.d/notifications.conf @@ -28,7 +28,6 @@ object NotificationCommand "mail-host-notification" { "NOTIFICATIONAUTHORNAME" = "$notification.author$", "NOTIFICATIONCOMMENT" = "$notification.comment$", "HOSTDISPLAYNAME" = "$host.display_name$", - "HOSTDISPLAYNAME" = "$host.display_name$", "USEREMAIL" = "$user.email$" } }