zabbix server cannot connect to database

2019-09-05 13:32发布

问题:

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

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

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

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

Anyone who can help?

回答1:

Solved. Both zabbix-mysql and zabbix-postgresql are installed. It seems there are some conflicts. Just remove zabbix-postgresql, it works.



回答2:

+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.



标签: mysql zabbix