Werk #17335: Fix rules not matching non-central cmk/site labels

Component User interface
Title Fix rules not matching non-central cmk/site labels
Date Nov 26, 2024
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p22 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Previously, agent rules that defined the "cmk/site" host label as a matching condition matched:

  1. All hosts if the condition was cmk/site:{central_site} where {central_site} is the name of your central site.
  2. No hosts if you specified any other cmk/site value

With this werk, we fixed an underlying bug where in the rule matching, all hosts were assigned the cmk/site:{central_site} label regardless of what site the host is being monitored on.

Attention, incompatible change:

This changes which hosts are affected by agent rules matching on the cmk/site label. If you have any agent rules matching on the cmk/site host label, your agent bakery is affected:

Any agent rules matching on the cmk/site host label of a remote site now no longer matches on hosts of the central site, only on hosts of that remote site.

Any agent rules matching on the cmk/site host label of the central site now no longer matches hosts of ALL sites, only on hosts of the central site.

To the list of all Werks