在zabbix server 生产环境中,随着监控项的增加,zabbix server 会产生告警,需要对参数进行优化,常见的告警如下,以及解决方案。

1.告警:Zabbix server: 历史缓存,已使用百分比:86.28 %;

vi /etc/zabbix/zabbix_server.conf

#Zabbix server: 在历史缓存中使用超过 75%,如果不设置这个值,默认是16M 推荐128M~1G ,存储历史数据,如果监控项10万+ ,推荐 1G~2G
HistoryCacheSize=1G
修改配置后重启zabbix-server
 systemctl restart zabbix-server.service
2.告警:Zabbix server: 历史索引缓存,已使用百分比:98.66 %;

vi /etc/zabbix/zabbix_server.conf

#Zabbix server: 在历史索引缓存中使用超过 90%,如果不设置这个值,默认是128M,如果监控项10万+ ,推荐 1G~2G
HistoryIndexCacheSize=1G

修改配置后重启zabbix-server
 systemctl restart zabbix-server.service
3.告警:Zabbix server: 值缓存,已使用百分比:95.02 %

vi /etc/zabbix/zabbix_server.conf

#Zabbix server: 在值缓存中使用超过 90%,如果不设置这个值,默认是128M,如果监控项10万+ ,推荐 128M~2G
ValueCacheSize=512M
修改配置后重启zabbix-server
 systemctl restart zabbix-server.service
4.告警:Zabbix server: Trend write cache, % used:94.58 %;

vi /etc/zabbix/zabbix_server.conf

增加如下参数

TrendCacheSize=256M

查看数据

在这里插入图片描述

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐