[ZBX-20769] Web server's error for not being able to connect to zabbix server (docker mode) Created: 2022 Mar 20  Updated: 2022 Mar 23

Status: Open
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F), Installation (I)
Affects Version/s: 6.0.1
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Costis C Assignee: Aleksandrs Petrovs-Gavrilovs
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2022-03-20-17-49-00-079.png    

 Description   

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.



 Comments   
Comment by Costis C [ 2022 Mar 20 ]

Please allow the reporter to be able to edit his/her reported ticket, in Jira.

Generated at Sat Apr 19 01:20:48 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.