From 564e61670bdd38eaca15169a22c977a568b9507c Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Sun, 8 Nov 2026 13:05:23 +0100 Subject: [PATCH] MPF now filters classes reported by `cf-agent` with `report_metatags_include` and `report_metatags_exclude` Report filtering is moving from `cf-serverd` (`report_data_select` in `controls/reports.cf`) to `cf-agent`, one chapter at a time as each moves to leech2 reporting. Classes are the first, so `cf-agent` now filters them with the same metatags. `cf-serverd` keeps filtering variables (`VAD`), execution log (`ELD`), promise log (`PLG`) and monitoring (`MOM`, `MOY`, `MOH`) until they have moved too. Changelog: Title Ticket: ENT-14507 Signed-off-by: Lars Erik Wik --- controls/cf_agent.cf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/controls/cf_agent.cf b/controls/cf_agent.cf index 47840bc1f6..eac975b511 100644 --- a/controls/cf_agent.cf +++ b/controls/cf_agent.cf @@ -62,4 +62,11 @@ body agent control # The order in which promises are evaluated (top_down|classic) evaluation_order => "$(default:def.control_agent_evaluation_order)"; @endif +@if minimum_version(3.30.0) + any:: + # Metatags filter for classes reported to the hub. Keep in sync with + # metatags_include / metatags_exclude in controls/reports.cf. + report_metatags_include => { "inventory", "report" }; + report_metatags_exclude => { "noreport" }; +@endif }