Ad Widget

Collapse

Help with VMWare template and finding the UUID?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • surfrock66
    Member
    • Jul 2018
    • 30

    #1

    Help with VMWare template and finding the UUID?

    I have an older zabbix instance which I've been upgrading for several cycles to 5.4.1, along with an ESXi environment which has been brought from 6.0->6.5->6.7->7.0. I'm switching to the new vmware integration from an older template, and while it works, I had a bunch of vm guests already in zabbix, and the old guests don't link with the new autodiscover attempts, AND pre-prod and non-monitored vm guests now show in my host list. This is mostly fine.

    I want to link existing zabbix objects with this new template, and as far as I can tell, I just need to add the "vmware guest" template to the existing host (vm) in zabbix, then populate the {$VMWARE.VM.UUID} macro. The issue is, I can't figure out how to get that UUID. If I find an auto-discovered host (vm) and look at the macro, go to the ESXi host which has that vm, I can run "esxcli vm process list" and get a UUID for that vm which does NOT match what autodiscovery found. If I populate a macro with the UUID shown by esxcli, I get "Unknown virtual machine uuid."

    How can I find the UUID which zabbix is looking for to link a Zabbix Host to a vmware guest?
  • viktor_geesink
    Junior Member
    • Sep 2021
    • 2

    #2
    Hi

    i am having issues myself making Zabbix work with a working template I still have not found for monitor ESXI 7.

    However to get the uuid I used the below method:

    enable both esxi console shell and ssh services and ssh into the esxi host and run the below command:
    ( it will give you the uuid string of the host )

    esxcli system uuid get

    this gave me a uuid

    Regards

    Viktor

    Comment

    • viktor_geesink
      Junior Member
      • Sep 2021
      • 2

      #3
      Forgot to addL

      you can also try this command from the same shell ( it gave me a different uuid however than the command before) -- perhaps you can try and see if any of these work for your case?

      vim-cmd hostsvc/hostsummary | grep uuid

      Comment


      • mornevr
        mornevr commented
        Editing a comment
        This may be old and I see you never received a response, but this worked for me today using v7.0.6
    Working...