[opsview-base] [472] Backport of git opsview-base 801dd7964c8ca910cb9c10f369c6b97d06102093 - fixes host notifications when recovery based on notification_level

1 view
Skip to first unread message

s...@opsview.com

unread,
Jan 6, 2015, 1:32:36 PM1/6/15
to opsview-...@googlegroups.com
Revision
472
Author
tvoon
Date
2015-01-06 18:32:35 +0000 (Tue, 06 Jan 2015)

Log Message

Backport of git opsview-base 801dd7964c8ca910cb9c10f369c6b97d06102093 - fixes host notifications when recovery based on notification_level

Modified Paths

Modified: trunk/patches/nagios_notification_level.patch
===================================================================
--- trunk/patches/nagios_notification_level.patch	2014-10-23 22:51:35 UTC (rev 471)
+++ trunk/patches/nagios_notification_level.patch	2015-01-06 18:32:35 UTC (rev 472)
@@ -78,7 +78,7 @@
 +		return ERROR;
 +		}
 +	if((cntct->notification_level_stop > 0 ) && ( notification_number > cntct->notification_level_stop ) ) {
-+        if (hst->last_hard_state_change != hst->last_check) {
++        if (hst->current_state != STATE_UP) {  // This is different from services because Opsview sets all recoveries to be hard so old logic would always fail. This now allow recoveries to bypass this filter
 +            log_debug_info(DEBUGL_NOTIFICATIONS,2,"This contact's notification_level_stop %d is less than the current notification number %d\n", cntct->notification_level_stop, notification_number);
 +            return ERROR;
 +            }

Reply all
Reply to author
Forward
0 new messages