Werk #13478: Mitigate wrong conversion of disabled service rules on update

Component Setup
Title Mitigate wrong conversion of disabled service rules on update
Date Dec 17, 2021
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.1.0i1 2.0.0p18
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required

During cmk-update-config some disabled services rules are being broken by introducing an undesired escaping. This werk reduces the number of cases in which this happens.

Users "Disabled Services" rules were affected if they fullfilled all of the following criteria:

  • They have exactly one host condition (explicit or pattern)
  • They have no tag based conditions
  • All their patterns for the service name end in "$"

After this werk, only rules will be affected if they additionally

  • have exactly one explicit host condition (not a regular expression)
  • contain both quoted and unquoted special characters
  • in their service name pattern

For instance: "Foo[12]$" and "Foo\[12\]$" will remain unchanged, whereas "Foo\[1\][2]$" will be changed to "Foo\[1\]\[2\]$".

If this still affects you, you can avoid meeting the above criteria. For instance try to replace "my_hostname" by "~^my_hostname$" or to craft a service name pattern that does not require the trailing "$".

To the list of all Werks