From 6ae95f2ad0e73c0c6e86c1845fe061bc142be509 Mon Sep 17 00:00:00 2001 From: rhartmann <2409662+rhartmann@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:43:36 +0100 Subject: [PATCH] vSphere: Ignore VM templates Skip agent output for VM templates. This removes VM templates from discovery and avoids their piggyback data. --- cmk/special_agents/agent_vsphere.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmk/special_agents/agent_vsphere.py b/cmk/special_agents/agent_vsphere.py index 48ec6a1a591..8b84f8bb3a2 100644 --- a/cmk/special_agents/agent_vsphere.py +++ b/cmk/special_agents/agent_vsphere.py @@ -1880,6 +1880,9 @@ def fetch_virtual_machines( if vm_data.get("summary.config.ftInfo.role") == "2": continue # This response coming from the passive fault-tolerance node + if vm_data.get("config.template") == "true": + continue + if "runtime.host" in vm_data: vm_data["runtime.host"] = hostsystems.get( vm_data["runtime.host"], vm_data["runtime.host"]