Skip to content

Commit

Permalink
Fixed soft state recoveries #575
Browse files Browse the repository at this point in the history
Soft OK states were not being triggered when a soft non-OK state turned back into an OK state.
  • Loading branch information
jomann09 committed Nov 5, 2018
1 parent f86598e commit 766d0d9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions base/checks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1416,10 +1416,8 @@ int handle_async_service_check_result(service *svc, check_result *cr)
}


/* reset all service variables because its ok now... */
svc->state_type = HARD_STATE;
state_change = TRUE;
hard_state_change = TRUE;
/* there was a state change, soft or hard */
state_change = TRUE;
}

/***** SERVICE IS STILL IN PROBLEM STATE *****/
Expand Down Expand Up @@ -3503,4 +3501,4 @@ int parse_check_output(char *buf, char **short_output, char **long_output, char
dbuf_free(&perf_text);

return OK;
}
}

0 comments on commit 766d0d9

Please sign in to comment.