Zabbix学习笔记(六)---安装和使用中遇到的问题汇总(CentOS)

在安装和使用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

具体详细解释可以查看:https://www.zabbix.com/documentation/2.0/manual/appendix/config/zabbix_server

毕竟我们只是使用者,并不是开发者,只需要知道怎么使用Zabbix,太多的技术东西留给技术狂人吧



不定时更新中。。。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值