乐维社区
作者乐维社区·2020-05-26 10:40
研发工程师·广东乐维软件有限公司

Zabbix_server正常运行,却提示服务器没有运行

字数 1342阅读 4077评论 0赞 1

作者:广州九一乐维科技有限公司 许远

Zabbix突然出现了

Zabbix server is not running:the information displayed may not be current

Zabbix服务器没有运行:显示的信息可能不是当前的

一、SELinux未关闭

selinux一定要关闭,如果开启selinux,可能zabbix的discovery都不能正常使用

关闭selinux方法:
1、修改/etc/selinux/config文件中的SELINUX=“”值为disable是,然后重启。

2、如果不想重启,使用setenforce 0

setenforce 1,selinux为enforcing模式

setenforce 0,selinux为permissive模式

二、zabbix web 目录下面,$ZBX_SERVER 是否为IP,如果是localhost,ping一下localhost是否能解析。如果不能,需要/etc/hosts文件里增加相应的项目。

三、查看php的fsockopen模块是否启用。

方法一:

  第一步:

  php.ini文件中查找

  allow_url_fopen = On

  使其值为On

  第二步:

  php.ini文件中查找

  extension=php_openssl.dll

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

  第三步:

  重启web服务器,apache或IIS

方法二:

  1. vi php.ini

  找到 allow_url_fopen 这个参数设置成 On,即

  allow_url_fopen = On

  2. 让你的php支持 opensll扩展。

  默认,是没有openssl扩展的,只能重新编译安装。

  yum install openssl openssl-devel

  cd /usr/local/src/php-5.2.14/ext/openssl

   /usr/local/php/bin/phpize

  ./configure –with-openssl –with-php-config=/usr/local/bin/php-config

   make && make install

   看提示,把编译成的openssl.so 拷贝到你在php.ini 中指定的 extension_dir 下

   3. vi php.ini

   加入

   extension=openssl.so

   4. 重启web server

四、监控对象占满了trapper进程导致前端与server无法通信

“At least one trapper process must be running to display server availability and view queue in the frontend.”——Trapper进程用于接收前端查询server可用性及队列的请求将StartTrappers=20调整到StartTrappers=100,重启zabbix-server。

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

1

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广