Skip to content

Commit e402d9b

Browse files
author
Sebastian Wolf
authored
Merge pull request #758 from sawolf/757-hard-recover-on-last-attempt
Fix hard recovery on final check attempt
2 parents be60586 + 5687af8 commit e402d9b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Changelog

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ FIXES
1111
* Fixed build process when using GCC 10 (#721) (Michael Orlitzky)
1212
* Fixed postauth vulnerabilities in histogram.js, map.js, trends.js (CVE-2020-1408) (Thanks UraSec Team) (Sebastian Wolf)
1313
* When using systemd, configuration will be verified before reloading (#715) (tatref)
14+
* Fixed HARD OK states triggering on the maximum check attempt (#757) (Sebastian Wolf)
1415

1516
4.4.5 - 2019-08-20
1617
------------------

base/checks.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ int handle_async_service_check_result(service *svc, check_result *cr)
14901490
}
14911491

14921492
if (svc->current_attempt >= svc->max_attempts &&
1493-
(svc->current_state != new_last_hard_state || svc->state_type == SOFT_STATE)) {
1493+
(svc->current_state != new_last_hard_state || (svc->state_type == SOFT_STATE && svc->current_state != STATE_OK))) {
14941494

14951495
log_debug_info(DEBUGL_CHECKS, 2, "Service had a HARD STATE CHANGE!!\n");
14961496

0 commit comments

Comments
 (0)