Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20769

Web server's error for not being able to connect to zabbix server (docker mode)

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.1
    • None

      Steps to reproduce:

      1. Install Zabbix suite as docker services (zabbix-web-nginx-mysql flavour, based on alpine OS)

      Result:
      The web server complains about not being able to connect to the zabbix server:

      Solution:
      Zabbix frontend retrieves the IP address of zabbix server (ref. zabbix.conf.php) via the ZBX_SERVER_HOST environment variable.
      But that variable is not set initially set, and defaults to 'localhost' value.
      As a sulution, env_vars/.env_web file should have

      ZBX_SERVER_HOST=zabbix-server
      

      set, by default.

            agavrilovs Aleksandrs Petrovs-Gavrilovs
            CaveatL Costis C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: