Ad Widget

Collapse

ESXi 7.0.3 template Vmware Hypervisor

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • StefTresMan
    Member
    • Feb 2022
    • 32

    #1

    ESXi 7.0.3 template Vmware Hypervisor

    Hi all,

    I am using Zabbix 6.0.0 LTS, recently set up.
    I'm trying to monitor the metrics of a VMware ESXi 7.0.3 server, using the 'VMware hypervisor' template. I've created 4 macro's: {$VMWARE.URL}, {$VMWARE.USERNAME},{$VMWARE.PASSWORD} and {$VMWARE.HV.UUID}
    I got the UUID from the command:
    Code:
    esxcli system uuid get
    However, Zabbix won't monitor the host, and next to each item there is an error stating 'Unknown hypervisor uuid.'

    Any idea on this?
    I found some entry's in the forum about this issue, but no solution seems to work.

    At first i've tried the general 'VMware' template, but i don't want my hosts to be autodiscovered and all, and just the metrics from this specific host. The generic template does actually work with just {$VMWARE.URL}, {$VMWARE.USERNAME},{$VMWARE.PASSWORD}.

    And i've tried the VMware Hypervisor template with only these 3 macro's according to the documentation on the Zabbix site, but same problem.

    Tia,

    Last edited by StefTresMan; 25-02-2022, 15:26.
  • Answer selected by StefTresMan at 05-07-2022, 14:17.
    StefTresMan
    Member
    • Feb 2022
    • 32

    I've managed to get it working the way I want it.

    I just use the template Vmware hypervisor, added 4 macro's:

    {$VMWARE.HV.UUID}
    {$VMWARE.PASSWORD}
    {$VMWARE.URL}
    {$VMWARE.USERNAME}

    But the problem was the UUID, Vmware seems to have the tendency to pass wrong UUID's if you request it through the common channels.

    What I did to get the REAL and right UUID is:

    Log on to the ESXi server' ui, under the HOST part, click 'manage' and on the tab 'system' 'advanced settings' find the key 'Config.HostAgent.plugins.solo.enableMob' and set it to TRUE.

    then browse to:

    (You'll need to give your credentials.)

    and copy the UUID, paste it as a value for your {$VMWARE.HV.UUID} macro.

    Now set the key 'Config.HostAgent.plugins.solo.enableMob' back to FALSE.

    And be patient, it will take some time for the errors to disappear.


    Comment

    • EHRETic
      Member
      • Jan 2021
      • 45

      #2
      Hi there,

      I want to upvote that request/issue too because I'd like also to monitor my ESXi hosts "manually", meaning without autodiscovery.

      I can also add another issue : if you use the normal method/template on a single host, you'll end-up having a double host entry (in my case all hosts are in a vcenter)

      My reason why : I've a host that is in standby most of the time that I don't want to show in Zabbix in any case.

      Comment

      • StefTresMan
        Member
        • Feb 2022
        • 32

        #3
        I've managed to get it working the way I want it.

        I just use the template Vmware hypervisor, added 4 macro's:

        {$VMWARE.HV.UUID}
        {$VMWARE.PASSWORD}
        {$VMWARE.URL}
        {$VMWARE.USERNAME}

        But the problem was the UUID, Vmware seems to have the tendency to pass wrong UUID's if you request it through the common channels.

        What I did to get the REAL and right UUID is:

        Log on to the ESXi server' ui, under the HOST part, click 'manage' and on the tab 'system' 'advanced settings' find the key 'Config.HostAgent.plugins.solo.enableMob' and set it to TRUE.

        then browse to:

        (You'll need to give your credentials.)

        and copy the UUID, paste it as a value for your {$VMWARE.HV.UUID} macro.

        Now set the key 'Config.HostAgent.plugins.solo.enableMob' back to FALSE.

        And be patient, it will take some time for the errors to disappear.


        Comment

        • EHRETic
          Member
          • Jan 2021
          • 45

          #4
          Originally posted by StefTresMan

          and copy the UUID, paste it as a value for your {$VMWARE.HV.UUID} macro.

          Now set the key 'Config.HostAgent.plugins.solo.enableMob' back to FALSE.

          And be patient, it will take some time for the errors to disappear.
          Hi,

          Thanks a lot for your feedback, I can confirm that in the lab of lab, it worked like a charm on nested hosts.
          I'll repeat the test on my physical hosts and try to find a "manual" way for the vCenter VM (I just want to monitor it like a normal VM (space, cpu, memory, etc...)

          Comment

          • HubertJ
            Junior Member
            • Mar 2022
            • 5

            #5
            Hi, good point, but what about if hosts are autodiscovered from vCenter ? Did you find any solution to get value for {$VMWARE.HV.UUID} ?

            Comment

            • StefTresMan
              Member
              • Feb 2022
              • 32

              #6
              Originally posted by HubertJ
              Hi, good point, but what about if hosts are autodiscovered from vCenter ? Did you find any solution to get value for {$VMWARE.HV.UUID} ?
              For Vcenter, another template is used. This particular solution is only if you want to monitor ESXi hosts.

              Comment

              • EHRETic
                Member
                • Jan 2021
                • 45

                #7
                Hi there,

                It would be nice to find a way to adapt the vCenter template for a standalone version.

                Comment

                • HubertJ
                  Junior Member
                  • Mar 2022
                  • 5

                  #8
                  Originally posted by StefTresMan

                  For Vcenter, another template is used. This particular solution is only if you want to monitor ESXi hosts.
                  https://www.zabbix.com/integrations/vmware - The template to monitor VMware vCenter and ESX hypervisor

                  However i found that in this template items are duplicated like:

                  VMware Hypervisor name - vmware.vm.hv.name[{$VMWARE.URL},{$VMWARE.VM.UUID}] - no data Unknown hypervisor uuid
                  Hypervisor name - vmware.vm.hv.name[{$URL},{HOST.HOST}] - data collected successfuly where in fact discovered host name is hypervisor UUID

                  Similar sytuation is with discovered vm's, is that how it should be working? like VMWARE.VM.UUID items are for standalone host and HOST.HOST for vcenter enviroment?

                  Just i dont know if my configuration is bad or i just should disable the "UUID" items if they are used only for standalone hosts

                  Comment

                  • bab
                    Senior Member
                    • Aug 2020
                    • 176

                    #9
                    I am using Virt VMware Hypervisor ESXi - Andre Bello after import template in the zabbix I did follow steps:

                    1- added 3 macro

                    {$USERNAME} ----> root

                    {$PASSWORD} -----> password

                    {$URL} -----> https://esxi1.com/sdk

                    but cannot discovery and show :

                    Unknown hypervisor uuid.

                    How can I solve this problem?

                    Comment

                    • EHRETic
                      Member
                      • Jan 2021
                      • 45

                      #10
                      Originally posted by bab
                      I am using Virt VMware Hypervisor ESXi - Andre Bello after import template in the zabbix I did follow steps:

                      1- added 3 macro

                      {$USERNAME} ----> root

                      {$PASSWORD} -----> password

                      {$URL} -----> https://esxi1.com/sdk

                      but cannot discovery and show :

                      Unknown hypervisor uuid.

                      How can I solve this problem?
                      Hi,

                      You need a 4th macro for the host UUID {$VMWARE.HV.UUID}, this is required.

                      I don't know how to find it out on a single host, but google will probably be your friend

                      Comment

                      • StefTresMan
                        Member
                        • Feb 2022
                        • 32

                        #11
                        Originally posted by EHRETic

                        Hi,

                        You need a 4th macro for the host UUID {$VMWARE.HV.UUID}, this is required.

                        I don't know how to find it out on a single host, but google will probably be your friend
                        The procedure is described in post above:

                        Log on to the ESXi server' ui, under the HOST part, click 'manage' and on the tab 'system' 'advanced settings' find the key 'Config.HostAgent.plugins.solo.enableMob' and set it to TRUE.

                        then browse to:

                        https://**ESXIP**/mob/?moid=ha-host&...are.systemInfo
                        (You'll need to give your credentials.)

                        and copy the UUID, paste it as a value for your {$VMWARE.HV.UUID} macro.

                        Now set the key 'Config.HostAgent.plugins.solo.enableMob' back to FALSE.

                        And be patient, it will take some time for the errors to disappear.

                        Comment

                        • bab
                          Senior Member
                          • Aug 2020
                          • 176

                          #12
                          I did all steps also defined new macro for UUID but it still show same error " Unknown hypervisor uuid."
                          What is the issue ?
                          Attached Files

                          Comment

                          • StefTresMan
                            Member
                            • Feb 2022
                            • 32

                            #13
                            Patience is the issue... it can take a while before you receive metrics.
                            Even if you delete the host and set it up again, it will take a while.
                            In my setup, i just waited a day before getting back to it and it all worked out.

                            Comment

                            • bab
                              Senior Member
                              • Aug 2020
                              • 176

                              #14
                              Originally posted by StefTresMan
                              Patience is the issue... it can take a while before you receive metrics.
                              Even if you delete the host and set it up again, it will take a while.
                              In my setup, i just waited a day before getting back to it and it all worked out.

                              But As I am using this template :



                              if you open the template . there is not any value such as VMWARE.HV.UUID

                              Comment

                              • StefTresMan
                                Member
                                • Feb 2022
                                • 32

                                #15
                                Ah, I see now. Well, this post is about a totally different template, so i advise you to start a new thread for your specific problem.

                                Comment

                                Working...