zabbix服务器无法连接数据库 [英] zabbix server cannot connect to database

查看:213
本文介绍了zabbix服务器无法连接数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,zabbix web gui可以工作,但是zabbix server stutus是'Not running'

First, zabbix web gui can work, but zabbix server stutus is 'Not running'

表示mysql正常工作,因为zabbix web可以连接.

It means mysql works correctly, because zabbix web can connect it.

接下来,我检查了zabbix server/var/log/zabbix/zabbix_server.log,这里是详细信息:

Next, I checked zabbix server /var/log/zabbix/zabbix_server.log, here is the details:

14329:20160913:145134.438 数据库宕机:10 秒后重新连接14329:20160913:145144.439 [Z3001] 连接到数据库zabbix"失败:[0] 无法连接到服务器:连接被拒绝服务器是否在主机localhost"(::1) 上运行并接受端口 3306 上的 TCP/IP 连接?收到对 SSL 协商的无效响应:R

14329:20160913:145134.438 database is down: reconnecting in 10 seconds 14329:20160913:145144.439 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 3306? received invalid response to SSL negotiation: R

谁能帮忙?

推荐答案

+1 上面关于 zabbix-postgresql 的回答在我的情况下,zabbix-server-pgsql 与 zabbix-server-mysql 一起安装.卸载zabbix-server-pgsql后zabbix-server可以成功启动并连接MySQL DB.

+1 to the answer about zabbix-postgresql above In my case zabbix-server-pgsql was installed along with zabbix-server-mysql. After uninstalling zabbix-server-pgsql zabbix-server could be sucessfully started and connecting to MySQL DB.

这篇关于zabbix服务器无法连接数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆