BUG/MEDIUM: checks: tracking servers must not inherit the MAINT flag
If a server is disabled in configuration and another one tracks it, this last one must not inherit the MAINT flag otherwise it needs to be explicitly enabled afterwards. Just remove this to fix the issue.
This commit is contained in:
parent
bb9665e649
commit
566226b9d7
|
@ -7038,8 +7038,6 @@ int check_config_validity()
|
|||
|
||||
/* if the other server is forced disabled, we have to do the same here */
|
||||
if (srv->state & SRV_MAINTAIN) {
|
||||
newsrv->state |= SRV_MAINTAIN;
|
||||
newsrv->check.state |= CHK_ST_PAUSED;
|
||||
newsrv->state &= ~SRV_RUNNING;
|
||||
newsrv->check.health = 0;
|
||||
newsrv->agent.health = 0;
|
||||
|
|
Loading…
Reference in New Issue