Ad Widget

Collapse

VMware Guest discovery + Agent 2 Autoregistration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tompaah
    Junior Member
    • Jan 2025
    • 8

    #1

    VMware Guest discovery + Agent 2 Autoregistration

    What I am trying to accomplish:
    Hosts that are discovered from VMWare gets OS specific Agent (active) template applied when the Agent 2 comes online.

    What I've done:
    • VMware template discovery "VMware VM discovery" host prototype is modified to have {#VM.NAME} as name instead of {#VM.UUID} (necessary to match the Agent 2 hostname)
    • VMware host is configured to use PSK authentication
    • Windows Zabbix Agent 2 is configured to use PSK autentication and send string "Windows_NT" as HostMetadataItem
    • Autoregistration rule to Add host and Link template "Windows by Zabbix Agent active" if HostMetadataItem = "Windows_NT"
    What actually happens:
    1. Host is successfully discovered by VMware VM discovery
    2. Agent 2 is started on the Windows VM
    3. Template "Windows by Zabbix Agent active" is not applied
    4. No errors in Zabbix Agent log, in debuglevel=5 it shows there is successful communication between Zabbix Server and Agent2
    5. No errors in Zabbix Server log in debuglevel=3, no mention of the host at all
    IF the host is not discovered from VMware VM discovery first, the Autoregistration works fine. The host gets created in Zabbix with the correct template linked. This means the Autoregistration rule set works fine.

    IF the host is added with Autoregistration first, it does not get the "VMware Guest" template after adding VMware host to Zabbix.

    What can I do to achieve my goal?
    Last edited by tompaah; 27-02-2025, 17:13.
  • tompaah
    Junior Member
    • Jan 2025
    • 8

    #2
    After doing some searches on the subject, I begin to believe this cannot be achieved in Zabbix conveniently.
    This Reddit post says the discovered VMware Guest hosts should be separated from the Agent 2-based hosts.
    https://www.reddit.com/r/zabbix/comm...mment/m0f8bb2/

    And there appears to be a number of threads on the internet on this same subject, so it appears it's not the best idea to combine like I wanted to. Maybe in a future update but for now I think I'll go with two separate hosts, one for the VMware Guest and one for the Agent 2.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      You are correct... same host cannot be autoregistered and discovered and created based on prototype at the same time. You can add that "windows by agent" template to prototype, but then you do not need autoreg. Or leave autoreg and do not discover VM-s..

      Comment

      Working...