diff --git a/cmk/bi/search.py b/cmk/bi/search.py index eb10090e7e9..58076cb4ef6 100644 --- a/cmk/bi/search.py +++ b/cmk/bi/search.py @@ -265,6 +265,8 @@ def _refer_to_host_results(self, search_matches: list[BIHostSearchMatch]) -> lis } for idx, group in enumerate(search_match.match_groups): search_result["$HOST_MG_%d$" % idx] = group + for key, value in search_match.host.labels.items(): + search_result[f"HOST_LABEL_{key}"] = value search_results.append(search_result) return search_results