Ad Widget

Collapse

Windows Zabbix Agents not auto-registering with DNS interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eikonjon
    Junior Member
    • Feb 2024
    • 2

    #1

    Windows Zabbix Agents not auto-registering with DNS interface

    Hi,

    Server: 6.4
    Proxy: 6.4
    Agents: 6.4 (Agent2 on Windows)


    We're experiencing an issue where Zabbix Windows agents (6.4) autoregister fine but are set to use their IP rather than DNS. Both DNS and IP entries for the auto-registered host are correct.

    We have tried setting the HostInterfaceItem in the following ways:

    HostInterfaceItem=system.hostname
    and
    HostInterfaceItem=system.hostanme[host,lower]

    On Linux and macOS agents this same config results in hosts being auto-registered AND using the DNS interface by default.

    Any ideas / anyone encountered similar behavior when trying to get Windows agents to auto-register with the DNS interface as default?

    Thanks, eikonjon!
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    HostInterfaceItem=system.run["powershell.exe -NonInteractive "[System.Net.Dns]::GetHostByName($env:computerName).HostName""]

    At least thats how our windows guys have entered it to agent config...
    Last edited by cyber; 19-02-2024, 12:19.

    Comment

    Working...