Explore the latest product updates and best practices at our hybrid Checkmk Conference #12 from June 16-18, 2026 – Register here

Werk #18491: Rulesets: Validate regex pattern in explicit host conditions

Component Setup
Title Rulesets: Validate regex pattern in explicit host conditions
Date Mar 12, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0p26 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.3.0p47 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

When entering an explicit host condition in a ruleset, values starting with ~ are interpreted as regular expressions. Previously, no validation was performed on these regex patterns, so an invalid regex would be accepted silently and could cause unexpected behavior at runtime.

With this fix, the regex pattern is validated at input. If the pattern is invalid, a proper error message is shown to the user immediately, preventing invalid configurations from being saved.

To the list of all Werks