diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' icinga-1.8.4~/base/notifications.c icinga-1.8.4/base/notifications.c --- icinga-1.8.4~/base/notifications.c 2013-01-13 22:18:37.000000000 +0000 +++ icinga-1.8.4/base/notifications.c 2013-01-29 15:35:04.000000000 +0000 @@ -990,6 +990,12 @@ if (se->first_unknown_notification == -2 || se->first_unknown_notification > unknown_notification_number) return FALSE; break; + case STATE_OK: + if ((se->first_warning_notification == -2 || se->first_warning_notification > warning_notification_number) && + (se->first_critical_notification == -2 || se->first_critical_notification > critical_notification_number) && + (se->first_unknown_notification == -2 || se->first_unknown_notification > unknown_notification_number)) + return FALSE; + break; } } } @@ -1021,6 +1027,12 @@ if (se->last_unknown_notification == -2 || ((se->last_unknown_notification != 0) && (se->last_unknown_notification < unknown_notification_number))) return FALSE; break; + case STATE_OK: + if ((se->last_warning_notification == -2 || se->last_warning_notification > warning_notification_number) && + (se->last_critical_notification == -2 || se->last_critical_notification > critical_notification_number) && + (se->last_unknown_notification == -2 || se->last_unknown_notification > unknown_notification_number)) + return FALSE; + break; } } }