Ad Widget

Collapse

Proxies VMs not getting created as new hosts sharing same name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • javiers
    Junior Member
    • Oct 2022
    • 18

    #1

    Proxies VMs not getting created as new hosts sharing same name

    Okay so basically i have 10 proxies which monitor 10 different esxi hosts, the problem is:

    There are some VMs which share the same name and are not getting created, for example Proxy 1 VM DC and Proxy 2 also has a VM named DC but in the frontend only Proxy 1 DC appears to be created as a discovered host.

    Any idea on how i could fix it?

    Any different idea from modifiying all vms which share the same name?
    Last edited by javiers; 04-01-2023, 12:09.
  • medl
    Junior Member
    • Nov 2022
    • 9

    #2
    Its sounds kind of adventurous that you have a proxy for each ESX but also makes me curious. What Problem lead you to deploy a Proxy for each ESX?

    Anyway, i ran into a similar Issues (Name collision in VMs / Datacenter etc) that i have not yet solved.
    Plan was (and still is) to modify the Host Prototype on the VMWare Template to include an additional Prefix / Suffix.
    In Template -> Template VM VMWare -> Host Prototypes you will find the Macro that is used and should be able to add your own.

    In general if you modify the supplemental Templates its good to clone them and make your own Version.
    Otherwise you may run into migration issues.

    If you monitor your ESX directly there should also be a (custom?) Template with a Host Prototype.

    Comment

    • javiers
      Junior Member
      • Oct 2022
      • 18

      #3
      My bad i miss explained, no i do not run a proxy for every esxi i ment i have 10 proxies distributed in order to monitor my clients LAN.
      I run 1 proxy for each client which monitors multiple esxi hosts, but yeah the issue its the same on my frontend only 1 host with the same name is added, so yeah i will try to add prefixes and check again.


      Thank yoy for your advice.

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #4
        Originally posted by medl
        If you monitor your ESX directly there should also be a (custom?) Template with a Host Prototype.
        Yes: in the ESXi-assigned template you should have a discovery rule for discovering the VMs, and in that rule there is a Host prototype. You can change the Name field to for example {#VM.NAME}(Guest {#VM.ID})​

        Markku

        Comment

        • javiers
          Junior Member
          • Oct 2022
          • 18

          #5
          Thanks for your advice Markku, in the end i did something similar by adding the uuid to the name.

          Another question related to this topic, is it possible to add a macro to the name so when host is created it adds the proxy which monitors the original host or something similar?
          Like adding the name from the original host ?

          Example: Esxi205 has vmware template which discovers the vms and adds its name to the vm , the final result would be VMName Esxi205 on the newly created host.​

          Comment

          • Markku
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Sep 2018
            • 1781

            #6
            See the VM discovery key fields documentation for vmware.vm.discovery: https://www.zabbix.com/documentation...scovery_fields

            Markku

            Comment

            Working...