Free on-demand webinars: Learn how to set up, configure, and get more out of Checkmk – Pick your webinar

Werk #22790: Rule search: survive invalid host regex

Component Setup
Title Rule search: survive invalid host regex
Date Oct 19, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0p39 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

If a rule had an explicit host condition with an invalid regular expression, for example ~*foo, searching rules by host in the rule search crashed with error: nothing to repeat at position 0.

The search now shows a warning that links to the affected rule, as it already did for invalid regular expressions in service conditions and in the full text search, and continues with the other rules.

To the list of all Werks