Werk #20035: Service discovery: Fix timeout when enabling/disabling a service on hosts with many disabled services
| Component | Checks & agents | ||||
| Title | Service discovery: Fix timeout when enabling/disabling a service on hosts with many disabled services | ||||
| Date | Jun 25, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
When enabling or disabling a single service during service discovery on a host that already had many disabled services, the operation could run into the automation timeout (around 110 seconds) and fail.
For every service change, Checkmk verifies the resulting "Disabled services" rules. Due to a regression, all services that were already disabled on the host were needlessly re-processed on every save, triggering one rule-matching automation call per disabled service. On hosts with a hundred or more disabled services, the accumulated time exceeded the automation timeout.
Only the services whose state actually changes are now processed, so enabling or disabling a service is fast again regardless of how many disabled services the host has.