-
Problem report
-
Resolution: Fixed
-
Major
-
6.0.10, 6.2.4
-
Sprint 95 (Dec 2022), Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023)
-
0.25
Steps to reproduce:
- Install zabbix frontend on host-a
- Install zabbix server on host-b
- Edit zabbix.conf.php and set $ZBX_SERVER='host-b'
- Leave $ZBX_SERVER_PORT commented (as zabbix server is listening at default port 10051)
Result:
System Information reports that Zabbix server on "localhost:10051" is down. This is weird because "localhost" is never mentioned in zabbix.conf.php. This message could be misleading and difficult to troubleshoot for users.
The error can be fixed only by explicitly defining a value for $ZBX_SERVER_PORT variable too. i.e: $ZBX_SERVER_PORT='10051'
Expected:
Zabbix frontend should honour $ZBX_SERVER, also when $ZBX_SERVER_PORT is not defined. It should not fall back to localhost default.
Alternatively, documentation should clearly state that the two variables needs to be BOTH defined.