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)
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'
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.