Branch: refs/heads/1.6.0
Home:
https://github.com/tribe29/checkmk
Commit: 576d89b9bd3727ecc1c95f99374c75902bdcc971
https://github.com/tribe29/checkmk/commit/576d89b9bd3727ecc1c95f99374c75902…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-05-26 (Wed, 26 May 2021)
Changed paths:
A .werks/12835
M cmk/utils/rulesets/ruleset_matcher.py
M tests/unit/cmk/utils/rulesets/test_ruleset_matcher.py
M tests/unit/cmk_base/test_config.py
Log Message:
-----------
12835 FIX Service label conditions could lead to wrong rule matches
The matching of service rule sets (which are used for a lot of different
settings in Checkmk) could lead to wrong rule matching results in case service
labels were used.
This issue was only triggered in a specific condition: Multiple services on
different hosts on the same site with the same service description had to use
the exact same set of label keys (the text before the ":") with different label
values (the text after the ":").
In this case it could happen that the rule value of one service affected the
rule value of another service. For example, this could lead to services being
added to a service group which should not be added to that group.
Change-Id: I70cde22f100bb7bb7961f6ca29307efd9d423d15