Zabbix5.0 LTS自身触发报警,报警内容如下:
More than 75% used in the configuration cache
Less than25% freeinthe configuration cache
More than 95% used in the configuration cacheh
解决方法:上面的提示均是CacheSize配置过小导致的,默认的CacheSize设置是8M,按提示修改zabbix_server.conf配置文件中cache大小配置即可。步骤如下:
1.查找zabbix_server.conf文件位置
[root@localhost ~]# find / -name 'zabbix_server.conf'
/etc/zabbix/zabbix_server.conf
2.修改zabbix_server.conf配置中Cache大小设置
vi /etc/zabbix/zabbix_server.conf
/CacheSize //搜索CacheSize位置
### Option: CacheSize
# Size of configuration cache, in bytes.
# Shared memory size for storing host, item and trigger data.
#
# Mandatory: no
# Range: 128K-64G
# Default:
#CacheSize=8M
CacheSize=512M
默认的配置文件CacheSize为8M,只要将上面#CacheSize=8M前面的#号去掉,并改为CacheSize=512M(可以根据自己服务器的内存大小设置,不要超过服务器内存一半都行)。
3.重启zabbix服务器,使配置生效
[root@localhost ~]# systemctl restart zabbix-server