在安装和使用Zabbix时,会经常遇到报错的情况,本文就把遇到过的情况汇总一下,避免下次继续踩坑!
安装篇:
①执行安装:
./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
1.configure: error: MySQL library not found
the problem is not installed mysql-devel
解决方法:yum install mysql-devel
2.configure: error: Not found curl Library
解决方法:yum install curl-devel
3.configure: error : Not found NET-SNMP library
yum install net-snmp-devel
使用篇:
①Zabbix poller processes more than 75% busy
解决方法:究其原因不详,但是可以增加Zabbix Server启动时初始化的进程数量,这样直接增加了轮询的负载量。
具体修改zabbix_server.conf文件
### Option: StartPollers
# Number of pre-forked instances of pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartPollers=5
取消StartPollers前的#号注释,修改5为10或者更大
然后,重启zabbix_server
②Zabbix housekeeper processes more than 75% busy
解决方法:很多技术博客长篇大论了一下,其实简单来阐述就是清理历史数据和趋势数据超过了阈值,就会触发这个报警,具体清理清理历史数据和趋势数据是由MaxHousekeeperDelete控制
具体修改zabbix_server.conf文件
### Option: MaxHousekeeperDelete
# The table "housekeeper" contains "tasks" for housekeeping procedure in the format:
# [housekeeperid], [tablename], [field], [value].
# No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename], [field], [value])
# will be deleted per one task in one housekeeping cycle.
# SQLite3 does not use this parameter, deletes all corresponding rows without a limit.
# if set to 0 then no limit is used at all. In this case you must know what you are doing!
#
# Mandatory: no
# Range: 0-1000000
# Default:
MaxHousekeeperDelete=100
取消MaxHousekeeperDelete前的#号注释,修改100或者更小
然后,重启zabbix_server
毕竟我们只是使用者,并不是开发者,只需要知道怎么使用Zabbix,太多的技术东西留给技术狂人吧
不定时更新中。。。