1、编译安装zabbix error: MySQL library not found
用编译方式安装的mysql ,用编译安装zabbix
报checking for mysql_config... configure: error: MySQL library not found
查找mysql_config

#find / -name "mysql_config*"
        /usr/local/mysql/bin/mysql_config           
把--with-mysql改成

--with-mysql=/usr/local/mysql/bin/mysql_config
正常通过

2、安装过程提示PHP BCMath和 PHP gettext错误!
进入PHP源码包目录下的ext/bcmath或gettext目录

    cd /usr/local/php/ext/
    /usr/local/php/bin/phpize
    ./configure --with-php-config=/usr/local/php/bin/php-config

(以上两个命令的路径根据自己系统情况而定)

make
make install

在php.ini里添加上gettext.so
extension = "gettext.so"
重启PHP即可

3、 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
24661:20170523:203330.920 database is down: reconnecting in 10 seconds-------无法连接数据库
/var/lib/mysql/mysql.sock不存在

         [root@localhost zabbix]# find / -name mysql.sock

做mysql.sock的链接

         [root@localhost lib]# mkdir /var/lib/mysql
        [root@localhost lib]# ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
        [root@localhost lib]# /etc/rc.d/init.d/mysqld restart
        Shutting down MySQL... SUCCESS! 
        Starting MySQL SUCCESS


修改zabbix_server.conf中的mysql.sock的配置

vim /etc/zabbix/zabbix_server.conf
DBSocket=/tmp/mysql.sock

4、如图:
安装zabbix遇到的问题

zabbix_agent进程没有起来,端口10050
5、提示错误:Received empty response from Zabbix Agent at [192.168.1.110]. Assuming that agent dropped connection because of access permissio

解决方法:

在客户端vim /etc/zabbix_agentd.conf

修改Server=192.168.1.130(服务器地址)