zabbix server is not running the information displayed may not be current
在租用的云主机上安装了zabbix3.4.6。大部分是通过yum安装的,没什么大问题。在打开web页面后,总是提示我,数据库的mysql.sock的路径不对而无法继续。当初忘了是因为什么原因,把mysql.sock设置在tmp目录下了。
改为 /var/lib/mysql/mysql.sock 后,web服务起来了。使用 systemctl status 查看了各个安装的服务,也没发现什么问题,就洗洗睡了。
早上起来,打开web页面,留意到最底下有行提示“zabbix server is not running the information displayed may not be current”,再仔细看
Zabbix状态
| 参数 | ֵ值 | 细节 |
|---|---|---|
| Zabbix服务器端运行中 | 不 | 127.0.0.1:10051 |
对比网上的说法,最后把有效解决问题的几个步骤记录如下:
netstat -ntlp |grep zabbix
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 18559/zabbix_agentd
tcp6 0 0 :::10050 :::* LISTEN 18559/zabbix_agentd
可得出服务没有处于端口监听中。在看日志,我的系统是centos7
tailf /var/log/zabbix/zabbix_server.log
19664:20180129:165208.608 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
19664:20180129:165208.608 database is down: reconnecting in 10 seconds
19664:20180129:165218.608 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
根据日志提示信息再去百度
内存问题
:参考 https://www.cnblogs.com/xkus/p/7783630.html
内存溢出
https://blog.51cto.com/11853923/2167084
转载于:https://blog.51cto.com/yanchuanyu/2324708