Zabbix agent 启动报错:cannot set resource limit [13] Permission denied

启动zabbix agent失败,

# tail /var/log/zabbix/zabbix_agentd.log
……
  1568:20200407:171352.170 Starting Zabbix Agent [Zabbix server]. Zabbix 3.4.11 (revision 82160).
  1568:20200407:171352.170 **** Enabled features ****
  1568:20200407:171352.170 IPv6 support:          YES
  1568:20200407:171352.170 TLS support:           YES
  1568:20200407:171352.170 **************************
  1568:20200407:171352.170 using configuration file: /etc/zabbix/zabbix_agentd.conf
  1568:20200407:171352.170 cannot set resource limit: [13] Permission denied
  1568:20200407:171352.170 cannot disable core dump, exiting...

关闭selinux,启动成功:

# getenforce
Enforcing

# setenforce 0
You have new mail in /var/spool/mail/root

# getenforce
Permissive

# systemctl start zabbix-agent

# sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config

如果不想关闭selinux,则需要进行如下安装和配置:

# yum install -y policycoreutils-python

# semanage permissive -a zabbix_agent_t

# systemctl start zabbix-agent

如果是zabbix-server,则设置:

# semanage permissive -a zabbix_t

参考:


https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/51642-zabbix-3-4-documentation-selinux

posted @ 2020-04-08 09:13  redstar1000  阅读(361)  评论(0编辑  收藏  举报