[ZBXNEXT-5168] Cannot use LLD Macro in vmware.hv.perfcounter Created: 2019 Apr 08  Updated: 2019 Apr 08

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S), Templates (T)
Affects Version/s: 4.0.6
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: nobody@nowhere Assignee: Andris Zeila
Resolution: Unresolved Votes: 1
Labels: items, lld
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS7.4, PostgreSQL9.3



 Description   

Hi guys,

  From section "vmware_keys" of ZABBIX 4.0 manual, it's said the format of hv.perfcounter is "vmware.hv.perfcounter[<url>,<uuid>,<path>,<instance>]". It seems to support LLD, but while I was trying to add this into LLD rule, I got error "Performance counter instance was not found", item prototype key is:

vmware.hv.perfcounter{$VMS_URL},{HOST.HOST},"datastore/write[average]",{#DATASTORE}

  (Host macro {$VMS_URL} has a valid value.)

  I've tried to create a non-LLD item with a valid(just discovered) storage name:

vmware.hv.perfcounter[{$VMS_URL},{HOST.HOST},"datastore/write[average]",datastore1]

  I got the same error.

  But the official keys could work:

vmware.hv.datastore.size{$VMS_URL},{HOST.HOST},{#DATASTORE}

  And other non-LLD items also works fine:

vmware.hv.perfcounter[{$VMS_URL},{HOST.HOST},"cpu/usage[average]"]

  Why does the LLD-discovered "datastore1" got error "Performance counter instance was not found"? Is there some configuration I lost, or maybe vmware.hv.perfcounter does not suppose to support {#DATASTORE} at all?


Generated at Fri Apr 26 07:37:10 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.