We use AWS ECS to run a variety of containers in our environment and was pleased to see that Zabbix 6 natively supported high availiability (albeit in an active-standby configuration). We're using the official docker images for this.
The docker image documentation mentions a few environment flags that could be used to configure the HA cluster in docker. Namely these were:
The issue we are having is that this is resolving the auto-generated container's hostname, that is not present in DNS and therefore the other Zabbix server cannot communicate with that host.
As these containers are on an ECS cluster, they can reside on any host so hardcoding values as an environment variable isn't an option.
It would be good if there was a way that the Zabbix server could establish the other servers' status without having to communicate with it via TCP/IP. Ideally just using the database etc.