[ZBXNEXT-5168] Cannot use LLD Macro in vmware.hv.perfcounter Created: 2019 Apr 08 Updated: 2024 May 13 Resolved: 2024 May 13 |
|
Status: | Closed |
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: | Duplicate | Votes: | 1 |
Labels: | items, lld | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
CentOS7.4, PostgreSQL9.3 |
Issue Links: |
|
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? |
Comments |
Comment by Michael Veksler [ 2024 May 13 ] |
Please check the documentation: Parameter "Instance" is single value from json array {#DATASTORE.EXTENT} |
Comment by Michael Veksler [ 2024 May 13 ] |
Closing this for now, if you have any more questions, feel free to reopen this ticket! |