Ad Widget

Collapse

Zabbix Fronted in Docker w/ HA?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dronenb
    Junior Member
    • May 2022
    • 2

    #1

    Zabbix Fronted in Docker w/ HA?

    Hi all,

    I am close to getting Zabbix set up with two servers configured in HA. I believe I have those setup and working fine with Docker containers on separate hosts. My last hangup is the fact that I am not sure how to use the zabbix/zabbix-web-nginx-mysql image with the HA servers. In the documentation here, it says to comment out the $ZBX_SERVER and $ZBX_SERVER_PORT, but since I am just using the Docker image I don't really have a good way to do that unless I mount a volume and modify that file. Is this what I need to do? Or is there a better way that I'm missing through an environmental variable or something that I can pass to the image?

    Thanks!
  • dronenb
    Junior Member
    • May 2022
    • 2

    #2
    I figured this issue out! I was setting the ZBX_SERVER_HOST environment variable on the Zabbix frontend container to be an empty string, which should force the web server to find the active Zabbix server from the database. My misconfiguration was with the servers themselves, as I was not explicitly setting the ZBX_NODEADDRESS variable on the server containers, thus when the frontend looked at the database for the active server, the address was 'localhost', thus it could not connect.

    Comment

    Working...