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.5
tailf /var/log/zabbix/zabbix_server.log > bug.txt
vim bug.txt
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)
问题很直接的出来的。
vim /etc/zabbix/zabbix_server.conf
————————————————