原因可能是安装界面的时候zabbix_server的服务器IP地址填的不对
修改配置文件
vim /usr/local/nginx/html/zabbix/conf/zabbix.conf.php
如果原来是127.0.0.1报错的,就改为localhost
如果原来是localhost,就改为127.0.0.1
填的地址主要就是根据你在安装zabbix界面的时候填写的那个zabbix_server服务器的正确地址
转载于:https://blog.51cto.com/yht1990/1912710