Skip to content

Commit

Permalink
vSphere: Ignore VM templates
Browse files Browse the repository at this point in the history
Skip agent output for VM templates. This removes VM templates from discovery and avoids their piggyback data.
  • Loading branch information
rhartmann authored Nov 13, 2024
1 parent 5221ef3 commit 6ae95f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmk/special_agents/agent_vsphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 6ae95f2

Please sign in to comment.