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.
diff --git a/src/cfgparse.c b/src/cfgparse.c
index b02bb01..2160243 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -7038,8 +7038,6 @@
/* 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;