1、zabbix_server.conf 故障对应参数
Zabbix busy trapper processes, in % StartTrappers=5
Zabbix busy poller processes, in % StartPollers=5
Zabbix busy ipmi poller processes, in StartIPMIPollers=0
Zabbix busy discoverer processes, in StartDiscoverers=1
Zabbix busy icmp pinger processes, in StartPingers=1
Zabbix busy http poller processes, in StartHTTPPollers=1
Zabbix busy proxy poller processes, in StartProxyPollers=1
Zabbix busy unreachable poller processes, in % StartPollersUnreachable=1
Zabbix busy java poller processes, in StartJavaPollers=0
Zabbix busy snmp trapper processes, in % StartSNMPTrapper=0
Zabbix busy vmware collector processes, in % StartVMwareCollectors=0
2、zabbix_server.conf 参数调整(根据实际情况调整)
StartPollers=500
StartPollersUnreachable=50
StartTrappers=30
StartDiscoverers=6
CacheSize=1G
CacheUpdateFrequency=300
StartDBSyncers=20
HistoryCacheSize=512M
TrendCacheSize=256M
HistoryTextCacheSize=80M
ValueCacheSize=1G
3、修改数据库最大连接数
- zabbix_server.log 错误日志提示:
[Z3001] connection to database 'zabbix' failed: [1040] Too many connections
- 进入数据库
show variables like 'max_connections';(查可以看当前的最大连接数)
set global max_connections=1000;(设置最大连接数为1000,可以再次查看是否设置成功)
exit;(退出)
如果不够,修改my.ini文件
增加或修改 max_connections=(根据需要填写连接数)
保存退出后,重启mysql的服务
重启Zabbix-server,系统启动正常