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不存在
[[email protected] zabbix]# find / -name mysql.sock
做mysql.sock的链接
[[email protected] lib]# mkdir /var/lib/mysql
[[email protected] lib]# ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
[[email protected] 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_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(服务器地址)
原文地址:https://blog.51cto.com/14430265/2417224
时间: 2024-11-02 16:27:47