[ZBX-18787] {$VMWARE_PERF_INTERVAL} macro is undefined Created: 2020 Dec 18  Updated: 2024 Apr 10  Resolved: 2021 Nov 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 5.0.6, 5.2.2
Fix Version/s: 5.0.18rc1, 6.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Kento Takahashi Assignee: Andrew Biba
Resolution: Fixed Votes: 1
Labels: Macros, Template, VMware
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team INT
Sprint: Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021)
Story Points: 1

 Description   

I installed Zabbix 5.0.6 and try to monitor VMware virtual machines.
Following error messages are shown in my zabbix_server.log.

  2827:20201209:114638.728 item "4c4c4544-005a-5a10-804a-b6c04f393333:vmware.hv.network.out[{$VMWARE.URL},{HOST.HOST},bps]" became not supported: Invalid update interval "{$VMWARE_PERF_INTERVAL}".
  2827:20201209:114638.728 item "30313437-3536-4753-4837-3038594e3943:vmware.hv.network.out[{$VMWARE.URL},{HOST.HOST},bps]" became not supported: Invalid update interval "{$VMWARE_PERF_INTERVAL}".

I found some item prototypes use {$VMWARE_PERF_INTERVAL} macro but it is not defined in any templates.

Steps to reproduce:
1. install Zabbix 5.0.6
2. add vmware host and apply template
3. error messages are shown in zabbix_server.log

Result:
{$VMWARE_PERF_INTERVAL} macro is not defined and cause errors.

Expected:
{$VMWARE_PERF_INTERVAL} macro is defined in VMware templates,

or {$VMWARE_PERF_INTERVAL} is not used in any items.

 



 Comments   
Comment by Edgar Akhmetshin [ 2020 Dec 19 ]

Hello,

Thank you for reporting the issue. Please use correct template.

Confirmed. How to repeat, install Zabbix:

git clone https://github.com/zabbix/zabbix-docker.git
git checkout 5.0
docker-compose -f docker-compose_v3_alpine_mysql_latest.yaml up -d

Login to the installation and find VMware templates, where will be macro template, but no macros on VM and HV template level.

Regards,
Edgar

Comment by Kento Takahashi [ 2020 Dec 21 ]

Thank you for your comment.
I tried the template and it works.

Regards,

Comment by Andrew Biba [ 2021 Nov 01 ]

Available in:

Comment by Jose A. Hernandez [ 2022 May 14 ]

I see this marked as closed/fixed but the vmware template in the zabbix git repo for the 5.0 release at https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/vmware?at=refs%2Fheads%2Frelease%2F5.0 is still missing the macro definitions. We are having the same issue as the OP of this bug.

Generated at Sun May 25 09:15:53 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.