Ad Widget

Collapse

Sample docker-compose YAML&env settings for deploying Zabbix Server HA from container

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wyang
    Member
    • Mar 2016
    • 93

    #1

    Sample docker-compose YAML&env settings for deploying Zabbix Server HA from container

    I'd like to deploy Zabbix Server HA Cluster from container and thus request for help on the forum.

    With reference to https://blog.zabbix.com/build-zabbix...ne-2021/18155/, how to configure zabbix server settings
    • HANodeName
    • NodeAddress
    when HA Zabbix servers are on a same host? or on different hosts?

    How to use the env variable ZBX_AUTOHANODENAME?

    Any experience on deploying Zabbix Server HA Cluster from container and any sample docker-compose YAML file and environment variable settings for deploying Zabbix Server HA Cluster from container would be great help. Thank you.
    Last edited by wyang; 01-03-2022, 19:49.
  • kashifhafeez
    Junior Member
    • Mar 2022
    • 3

    #2
    anything on this? i am trying to do the same thing?

    Comment

    • Tanel Lehtla
      Junior Member
      • Jul 2024
      • 4

      #3
      Hello!
      I'm a bit of a newbie when it comes to deploying a Zabbix HA cluster in docker compose so I don't think me providing a sample would help. However for the people who will stumble across this post in the future, I would like to explain what the environment variable ZBX_AUTOHANODENAME does.

      ZBX_AUTOHANODENAME environment variable automates the assignment of the HANodeName parameter. To use this you have to give it the value according to documentation provided in Docker Hub https://hub.docker.com/r/zabbix/zabbix-server-mysql:

      Code:
      ZBX_AUTOHANODENAME=fqdn
      This will automatically assign the hostname of the container.

      The zabbix-server docker image also provides a ZBX_AUTONODEADDRESS environment variable which takes the same value.

      Hopefully this comment helps someone in the future

      Comment

      Working...