[转]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

海拔科技

自媒体人,喜欢网络,热爱研究。本站头条号:星河 熊掌号:海拔科技

相关推荐

Zabbix实时Web场景监测以及告警配置

在工作中,很多基于Web的项目对网站的可用性都要求的非常高,因此需要对网站的可访问性进行监测,我们知道基于公网的网站监测服务有很多,百度、阿里、360、腾讯都有相对应的监测服务。但是对于内网服务器,我们 …

Centos启用cockpit 远程可视化WEB管理界面

本片文章主要介绍Centos7/8如何开启cockpit远程可视化web管理界面。 开启方法 CentOS 8 运行以上命令后即可开启! CentOS7 执行后会有类似提示: Created symlink from /etc/systemd/system/sockets.target.want …