Werk #10253: Fix possible AttributeError exception on "Parameters of service" page

Component Setup
Title Fix possible AttributeError exception on "Parameters of service" page
Date Oct 9, 2019
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.0.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0p5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

When trying to view the parameters of a "Number of threads" service while having locally configured rules that were saved with Checkmk before version 1.6, an "AttributeError" crash occurred.

The reason is that this ruleset was converted from a single WARN/CRIT parameter set to a more complex set of parameters. The check and rule editor are correctly transforming the old values, but this is not possible on the "Parameters of service" page.

Instead of the crash Checkmk now prints an error message with a hint that you can open the rule in question for editing and save it again to fix this issue.

To the list of all Werks