Fix re-notification interval.

Refs #5909
This commit is contained in:
Gunnar Beutner 2014-04-09 01:08:28 +02:00
parent 510610741b
commit 5619498762
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,8 @@ void NotificationComponent::NotificationTimerHandler(void)
continue; continue;
} }
notification->SetLastProblemNotification(now);
try { try {
Log(LogInformation, "notification", "Sending reminder notification for object '" + checkable->GetName() + "'"); Log(LogInformation, "notification", "Sending reminder notification for object '" + checkable->GetName() + "'");
notification->BeginExecuteNotification(NotificationProblem, checkable->GetLastCheckResult(), false); notification->BeginExecuteNotification(NotificationProblem, checkable->GetLastCheckResult(), false);

View File

@ -28,7 +28,6 @@ object NotificationCommand "mail-host-notification" {
"NOTIFICATIONAUTHORNAME" = "$notification.author$", "NOTIFICATIONAUTHORNAME" = "$notification.author$",
"NOTIFICATIONCOMMENT" = "$notification.comment$", "NOTIFICATIONCOMMENT" = "$notification.comment$",
"HOSTDISPLAYNAME" = "$host.display_name$", "HOSTDISPLAYNAME" = "$host.display_name$",
"HOSTDISPLAYNAME" = "$host.display_name$",
"USEREMAIL" = "$user.email$" "USEREMAIL" = "$user.email$"
} }
} }