Skip to content

Commit

Permalink
Update host viability check to also not prematurely send notification…
Browse files Browse the repository at this point in the history
…s just because the host is in an OK state.
  • Loading branch information
Scott Wilkerson committed Aug 23, 2018
1 parent be776f5 commit 5c98458
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions base/notifications.c
Expand Up @@ -1497,10 +1497,6 @@ int check_host_notification_viability(host *hst, int type, int options) {
return ERROR;
}

/***** RECOVERY NOTIFICATIONS ARE GOOD TO GO AT THIS POINT *****/
if(hst->current_state == HOST_UP)
return OK;

/* check if we shouldn't renotify contacts about the host problem */
if(hst->no_more_notifications == TRUE) {
log_debug_info(DEBUGL_NOTIFICATIONS, 1, "We shouldn't re-notify contacts about this host problem.\n");
Expand Down

0 comments on commit 5c98458

Please sign in to comment.