Support ignoring case in rule conditions for services
Before Checkmk 2.2 it was possible to add RegEx modifiers like (?i) to service conditions, resulting in the match being case-insensitive.
In Checkmk 2.2 this is no longer possible due to the functionality being removed with Python 3.11. The functionality was deprecated since Python 3.6.
Now, the only option to make matches case-insensitive is to explicitly add both cases to the match (AFAIK).
E.g.:
Prior to Checkmk 2.2 / Python 3.11 --> (?i)Interface Uplink
With Checkmk 2.2 / Python 3.11 --> Interface [Uu][Pp][Ll][Ii][Nn][Kk]
(I know the two matches are not strictly the same. Since "Interface" is a hardcoded part of Checkmk, it does not really matter whether it is matched case-sensitive, though.)
Comments: 1
-
23 Jun, '23
Thierry T.Update: Just after submitting I found a possibility to still achieve this using Regex, and I found a forum thread as well...
Have a look at my post there for the details: https://forum.checkmk.com/t/checkmk-2-2-python-3-11-case-insensitive/38995/9?u=ttrafelet
Nonetheless, I still consider this a feature worthwhile implementing, since not all users of Checkmk handle RegEx well.