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!
Ad Widget
Collapse
How to configure agent2 container to do autoregistration using DNS name?
Collapse