Zabbix agent启动报错:cannot create semaphore set

Posted redstar1000

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Zabbix agent启动报错:cannot create semaphore set相关的知识,希望对你有一定的参考价值。

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)

# systemctl start zabbix-agent
Job for zabbix-agent.service failed because a configured resource limit was exceeded. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.

# journalctl -xe
.....

-- Unit zabbix-agent.service has begun starting up.
Apr 07 18:53:25 EWB-DB systemd[1]: PID file /run/zabbix/zabbix_agentd.pid not readable (yet?) after start.
Apr 07 18:53:25 EWB-DB systemd[1]: zabbix-agent.service never wrote its PID file. Failing.
Apr 07 18:53:25 EWB-DB systemd[1]: Failed to start Zabbix Agent.
-- Subject: Unit zabbix-agent.service has failed

# tail /var/log/zabbix/zabbix_agentd.log
zabbix_agentd [7015]: cannot open log: cannot create semaphore set: [28] No space left on device
zabbix_agentd [7023]: cannot open log: cannot create semaphore set: [28] No space left on device

报错原因:
共享内存信号量kernel.sem参数设置过小

#cat /proc/sys/kernel/sem
250 32000 100 128

# vim /proc/sys/kernel/sem
kernel.sem =258  32000   100      256

# sysctl -p /etc/sysctl.conf 

参数含义

上面的4个数据分别对应:SEMMSL、SEMMNS、SEMOPM、SEMMNI这四个核心参数,具体含义和配置如下。

SEMMSL:每个用户拥有信号量最大数量

SEMMNS:系统信号量最大数量

SEMOPM:每次semop系统调用操作数

SEMMNI:系统信号量集最大数量

参考:

https://www.cnblogs.com/xkus/p/7783630.html
https://www.cnblogs.com/hei-ma/p/10180450.html

以上是关于Zabbix agent启动报错:cannot create semaphore set的主要内容,如果未能解决你的问题,请参考以下文章

zabbix登陆问题:cannot allocate shared memory for collector

zabbix_agentd_window端运行报错cannot connect to Service Manager: [0x00000005]

linux查看与修改交换内存配置(解决zabbix-agent启动报错)

zabbix提示zabbix server is not running &Get value from agent failed: cannot connect to

zabbix: Get value from agent failed: cannot connect to [[172.16.179.10]:10050]: [4] Interrupted syst

zabbix Get value from agent failed: cannot connect to [[10.2.72.132]:10050]: [113] No route to host