Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-5168

Cannot use LLD Macro in vmware.hv.perfcounter

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.0.6
    • Server (S), Templates (T)
    • CentOS7.4, PostgreSQL9.3

      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?

            wiper Andris Zeila
            nobody@nowhere nobody@nowhere
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: