zabbix监控报错:zabbix server is not running: the information displayed may not be current

正常安装完zabbix后,登录后zabbix监控报错:zabbix server is not running: the information displayed may not be current,

下面的几种情况都有可能引起这个错误,

1. selinux是否关闭。

一定要关闭这个,开启selinux会引起一连串问题,甚至zabbix的discovery功能也不能正常使用

关闭SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。
如果不想重启系统,使用命令setenforce 0
注:
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式

2. zabbix web(/etc/zabbix/web/zabbix.conf.php)下面 $ZBX_SERVER 是否正确,如果是localhost,ping下localhost是否能解析。如果不能,需要在/etc/hosts文件里增加相应的项目

 

3.查看php的fsockopen模块是否启用。

  第一步:

  php.ini文件中查找

  allow_url_fopen = On

  使其值为On

 

  第二步:

  php.ini文件中查找

  extension=php_openssl.dll

  如果前面有分号,去掉分号

 

 

重启web服务器,apache或IIS

  

posted @ 2020-06-23 16:02  Bein28  阅读(587)  评论(0)    收藏  举报