Ad Widget

Collapse

How to configure agent2 container to do autoregistration using DNS name?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eeeboyu
    Junior Member
    • Oct 2020
    • 4

    #1

    How to configure agent2 container to do autoregistration using DNS name?

    I am running Zabbix server and zabbix agents on docker swarm. The zabbix server can not see the agent's real IP (Looks like there is a NAT in between). The autoregistration does not work due to IP mismatch. For zabbix agent, I managed to make it work by setting "ZBX_HOSTINTERFACEITEM=system.hostname" to use the DNS name. However, this environment variable is not supported by agent2 image. Can someone help by giving me a workaround? Thanks!
Working...