Skip to content

Commit

Permalink
* Fixed services sending recovery emails when they recover if host in…
Browse files Browse the repository at this point in the history
… down state (#572) (Scott Wilkerson)
  • Loading branch information
Scott Wilkerson committed Aug 21, 2018
1 parent 5e52461 commit 2c323e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Changelog
Expand Up @@ -2,6 +2,9 @@
Nagios Core 4 Change Log
########################

FIXES
* Fixed services sending recovery emails when they recover if host in down state (#572) (Scott Wilkerson)

4.4.2 - 2018-08-16
------------------
FIXES
Expand Down
4 changes: 0 additions & 4 deletions base/notifications.c
Expand Up @@ -591,10 +591,6 @@ int check_service_notification_viability(service *svc, int type, int options) {
return ERROR;
}

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

/* don't notify contacts about this service problem again if the notification interval is set to 0 */
if(svc->no_more_notifications == TRUE) {
log_debug_info(DEBUGL_NOTIFICATIONS, 1, "We shouldn't re-notify contacts about this service problem.\n");
Expand Down

0 comments on commit 2c323e3

Please sign in to comment.