[转]Zabbix错误合集及解决办法

转自 聂扬帆博客 内容有部分修改

原文地址:http://yangfannie.com/1431.html

本文记录zabbix遇到的一些错误报警以及解决方法。

0x01  zabbix_server dead but subsys locked错误

今天把Zabbix版本从3.2升级到了3.4。但在启动Zabbix_Server时出现了”zabbix_server dead but subsys locked”的错误状态。

1、问题原因

在查看了zabbix_server日志,发现日志里有下面的告警

zbx_mem_malloc(): out of memory (requested 256 bytes)
 
zbx_mem_malloc(): please increase CacheSize configuration parameter

错误原因写的很明白,内存溢出,请调整CacheSize大小。

2、问题解决

编辑/usr/local/zabbix/etc/zabbix_server.conf配置文件,定位到CacheSize关键字位置,然后调高CacheSize大小,大小根据自己环境调整

# Size of configuration cache, in bytes.
 
# Shared memory size for storing host, item and trigger data.
 
#
 
# Mandatory: no
 
# Range: 128K-8G
 
# Default:
 
CacheSize=32M

最后重启 zabbix_server服务 服务即可(/etc/init.d/zabbix_server restart)。

0x02  Zabbix value cache working in low memory mode错误

问题解决:

编辑/usr/local/zabbix/etc/zabbix_server.conf配置文件,定位到ValueCacheSize关键字位置,然后调高ValueCacheSize大小,大小根据自己环境调整

# Option: ValueCacheSize
 
# Size of history value cache, in bytes.
 
# Shared memory size for caching item history data requests.
 
# Setting to 0 disables value cache.
 
#
 
# Mandatory: no
 
# Range: 0,128K-64G
 
# Default:
 
ValueCacheSize=2048M

已发布

分类

来自

标签:

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注