Ad Widget

Collapse

Issue with {#VM.POWERSTATE} Filter in VMware FQDN Template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vdaron
    Junior Member
    • Apr 2025
    • 2

    #1

    Issue with {#VM.POWERSTATE} Filter in VMware FQDN Template

    Hi Zabbix community,

    I'm trying to use the VMware FQDN Template to easily discover infrastructure behind vSphere. It works well, but I can't use the filter {#VM.POWERSTATE} that exists in the "VMware VM FQDN discovery." It seems to only return powered-on VMs, regardless of the value I set for that macro. The default value ("poweredOn|poweredOff|suspended") should return all VMs, including powered-off ones.

    The {#VM.DNS} filter works fine.

    I'm using the latest version of Zabbix (7.2.5) and latest version of the template 7.2-2)

    Any ideas?

    Thanks a lot!​
  • vdaron
    Junior Member
    • Apr 2025
    • 2

    #2
    I found the problem myself.

    The 'Host prototype' of the 'VMware VM FQDN discovery' uses {#VM.DNS} as the host name, and it may be null or empty if the VM is stopped. Therefore, the host cannot be created.

    I replaced the "Host name" with {#VM.UUID}, and now all the VMs are discovered.

    Note: The 'VMware VM FQDN discovery' filter also uses {#VM.DNS} to filter VMs based on their DNS name. Consider updating it as well if necessary.

    Comment

    Working...