Werk #22103 · Aug 6, 26
Check_MK Discovery: do not crash on older periodic discovery rules
After upgrading, the "Check_MK Discovery" service of a host could go to UNKNOWN
with a crash report ("check failed - please submit a crash report!") showing the
exception KeyError: 'update_changed_service_parameters'.
This happened when a "Periodic service discovery" rule using a custom rediscovery mode had been stored before the "Update service parameters" option was introduced -- for example rules that were created via the REST API in an early 2.4 version and never re-saved afterwards.
The discovery check now tolerates these older rules by treating the missing "Update service parameters" option as disabled, and no longer crashes.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p12All Editions
- 2.4.0p36All Editions