[ZBX-22295] In the vmware.vm.discovery key, the {#VM.POWERSTATE} macro is not returning. Created: 2023 Feb 02  Updated: 2024 Apr 10  Resolved: 2023 Feb 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S), Templates (T)
Affects Version/s: 6.0.13, 6.2.7, 6.4.0beta6
Fix Version/s: None

Type: Problem report Priority: Major
Reporter: Rafael Magalhães Assignee: Michael Veksler
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

VMWare 7.0.3


Attachments: PNG File image-2023-02-03-09-15-24-595.png     PNG File image-2023-02-03-09-15-24-682.png     PNG File vm.discovery.png    
Team: Team B

 Description   

I'm trying to create a filter in the virtual machines discovery rule so that it ignores turned-off VMs, but I verified through the Zabbix Proxy log capture that the discovery is not returning the macro {#VM.POWERSTATE}.



 Comments   
Comment by Edgar Akhmetshin [ 2023 Feb 03 ]

Hello Rafael,

Provide to the issue:

  • Zabbix version used for Server/Proxy
  • VMware version used
  • VMware permissions used for the user
  • VMware output example

Regards,
Edgar

Comment by Rafael Magalhães [ 2023 Feb 03 ]

Hi Edgar,

  • Zabbix version used for Server/Proxy - Version 6.0.7
  • VMware version used - 7.0.3
  • VMware permissions used for the user - Read Only
  • VMware output example:

[

{ "

{#VM.UUID}

":"501d969f-4342-4b0c-5f35-910212b6c1bb",
"{#VM.ID}":"vm-9812",
"{#VM.NAME}":"TesteNSX5",
"{#HV.NAME}":"esxi-sddc-dasa-2.sub09230238231.vncocvs.oraclevcn.com",
"{#DATACENTER.NAME}":"oci-w01dc",
"{#CLUSTER.NAME}":"oci01-w01-consolidated01",
"{#VM.IP}":"10.253.225.109",
"{#VM.DNS}":"TesteNSX5",
"{#VM.GUESTFAMILY}":"windowsGuest",
"{#VM.GUESTFULLNAME}":"Microsoft Windows Server 2019 (64-bit)",
"{#VM.FOLDER}":"TestesDasa"
},

{ "\{#VM.UUID}

":"501d221b-d20b-297c-de84-e39eace17e22",
"{#VM.ID}":"vm-20016",
"{#VM.NAME}":"brrj2sv016ana",
"{#HV.NAME}":"esxi-sddc-dasa-2.sub09230238231.vncocvs.oraclevcn.com",
"{#DATACENTER.NAME}":"oci-w01dc",
"{#CLUSTER.NAME}":"oci01-w01-consolidated01",
"{#VM.IP}":"",
"{#VM.DNS}":"",
"{#VM.GUESTFAMILY}":"",
"{#VM.GUESTFULLNAME}":"",
"{#VM.FOLDER}":"RJ2-DR"
}

 

Comment by Michael Veksler [ 2023 Feb 06 ]

Hello Rafael,

The macros VM.POWERSTATE was introduced in ZBXNEXT-2302 for 6.2

Be so kind to provide the json for v6.2 and newer.

Regards,

Michael

Comment by Michael Veksler [ 2023 Feb 28 ]

Closing this for now, if you have any more questions, feel free to reopen this ticket!

Generated at Wed May 21 06:43:10 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.