错误提示:

4689:20141229:182600.308 Cannot connect to the database. Exiting...
  4993:20141229:182600.599 Starting Zabbix Server. Zabbix 2.2.1 (revision 40808).
  4993:20141229:182600.599 ****** Enabled features ******
  4993:20141229:182600.599 SNMP monitoring:           YES
  4993:20141229:182600.599 IPMI monitoring:           YES
  4993:20141229:182600.599 WEB monitoring:            YES
  4993:20141229:182600.599 VMware monitoring:         YES
  4993:20141229:182600.599 Jabber notifications:      YES
  4993:20141229:182600.599 Ez Texting notifications:  YES
  4993:20141229:182600.599 ODBC:                      YES
  4993:20141229:182600.599 SSH2 support:              YES
  4993:20141229:182600.599 IPv6 support:              YES
  4993:20141229:182600.599 ******************************
  4993:20141229:182600.599 using configuration file: /etc/zabbix_server.conf
  4993:20141229:182600.602 [Z3001] connection to database 'zabbix' failed: [0] could not connect t
Is the server running on host "localhost" and accepting
TCP/IP connections on port 3306?
received invalid response to SSL negotiation: 4



解决方法:


[root@centos-server ~]# yum remove zabbix22-dbfiles-pgsql.noarch 

[root@centos-server ~]# yum install zabbix22-dbfiles-mysql.noarch

[root@centos-server ~]# service zabbix-server restart

[root@centos-server ~]# getsebool -a|grep zabbix

zabbix_can_network --> off

[root@centos-server ~]# setsebool zabbix_can_network on

zabbix setup ERROR:4993:20141229:183010.680 [Z3001] connection to database 'zabbix' failed:_第1张图片