Ad Widget

Collapse

Network map with item value from Vmware plugin - Return UNKNOWN value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lyonmarco
    Junior Member
    • May 2023
    • 4

    #1

    Network map with item value from Vmware plugin - Return UNKNOWN value

    Good morning,
    this is my first post in the forum therefore please tell me if I posted this in the wrong place. First of all thank you all, this precious community helped me a lot in solving many issue with my Zabbix instance. I have Zabbix appliance installed, latest version, that is monitoring several ESXi hypervisors and a Virtual Center. I configured the Vmware template for grabbing info from Vcenter and all was good: the system automatically discovered the ESXi, VMs, datastore and many other information. I configured a Network map showing the status of each ESXi server and no problem so far. My problem is when I want to add an item gathered with Vmware template in the map, for example list the number of guest VMs in each hypervisor.

    Following the documentation, I have created a image in the map and configured the label like that:

    Number of VMs: {?last(/A.B.C.D/vmware.hv.vm.num[https://servername/sdk,37393150-3636-5a43-4a31-XXXXXXXXXXXX])}

    Where:

    A.B.C.D is the ip address of the Vcenter
    servername: is the hostname of the vcenter

    I tried different combination of the parameters but the outcome is always the same (for instance, I tried with A.B.C.D as the IP of the hypervisor)

    The label return the value "UNKNOWN" therefore for sure I'm doing something wrong.

    The item "vmware.hv.vm.num[https://servername/sdk,37393150-3636-5a43-4a31-XXXXXXXXXXXX]" correctly reports the number of VMs guest present in the hypervisor queried (I checked directly under the items tab.

    Do you have any suggestion on how I can configured the correct query in the label?

    Thank you,
    LM

  • lyonmarco
    Junior Member
    • May 2023
    • 4

    #2
    Anyone that can help with this request?

    Thank you,
    LM

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #3
      Please read in the documentation about format of "Expression macros".


      In a simple way:
      {?avg(/_HOST_/_KEY_)}​

      _HOST_ - Host name​ (not Visible name​) ( In terms of the zabbix https://www.zabbix.com/documentation...fig/hosts/host )
      _KEY_ - Item key ( In terms of the zabbix https://www.zabbix.com/documentation...fig/items/item )

      Comment

      • lyonmarco
        Junior Member
        • May 2023
        • 4

        #4
        Hi, thank you for the reply.
        I already red that documentation and based on it I created the expression reported in this thread - {?last(/A.B.C.D/vmware.hv.vm.num[https://servername/sdk,37393150-3636-5a43-4a31-XXXXXXXXXXXX])}.

        I keep receiving the result *Unknown*. I think the error is in the two parameters of the item key that are, as per documentation: vmware.hv.vm.num[{$VMWARE.URL},{$VMWARE.HV.UUID}]

        As you can see I inserted the two parameters by hand but nothing changed.

        Any idea?

        Thanks,
        LM​

        Comment

        • lyonmarco
          Junior Member
          • May 2023
          • 4

          #5
          I solved! Of course it was my mistake: I wrongly created an image object in the map, I tried using an host object. This was my error.

          Thank you again for the follow up, really appreciate.

          LM

          Comment

          Working...