zabbix error cannot create Semaphore [28] No space left on device
Zabbix Agentd进程存在,但是服务端无法与客户端正常通讯
查看zabbix日志
zabbix_agentd [11961]: cannot create Semaphore: [28] No space left on device zabbix_agentd [11961]: unable to create mutex for log file zabbix_agentd [11997]: cannot create Semaphore: [28] No space left on device zabbix_agentd [11997]: unable to create mutex for log file
解决方法
修改/etc/sysctl.conf
添加如下行:
kernel.sem = 500 64000 64 256
修改之后,执行sysctl -p使其生效。
然后重新启动zabbix-agent即可
其实这里涉及到kernel.sem信号量参数调优,以及ipcs信号量队列查询
在这说下kernel.sem 这个参数
cat /proc/sys/kernel/sem
250 32000 32 128
或者
ipcs -ls ------ Semaphore Limits -------- max number of arrays = 128 max semaphores per array = 250 max semaphores system wide = 32000 max ops per semop call = 32 semaphore max value = 32767
kernel.sem 4个参数的意义
250 SEMMSL max semaphores per array 信号集容纳最大信号数量
32000 SEMMNS max semaphores system wide 所有信号的最大数量
32 SEMOPM max ops per semop call 调用单个信号集中最大信号数量
128 SEMMNI max number of arrays 信号集的最大值
原创文章,转载请注明:爱猫家»zabbix error cannot create Semaphore [28] No space left on device
发表评论