zabbix代理服务失败,PID不可读

per*_*gee 2 selinux zabbix centos7

我试图在CentOS7上运行zabbix-agent 3.0.4,systemd无法启动zabbix代理,来自 journalctl -xe

PID file /run/zabbix/zabbix_agentd.pid not readable (yes?) after start. node=localhost.localdomain type=SERVICE_START msg=audit(1475848200.601:17994): pid=1 uid=0 auid=4294967298 ses=... zabbix-agent.service never wrote its PID file. Failing. Failed to start Zabbix Agent.

没有权限错误,我尝试重新配置PID路径/tmp文件夹中zabbix-agent.servicezabbix_agentd.conf,这是行不通的.

很奇怪,有人有想法吗?先感谢您.

=====

调查一下,PID应该在/run/zabbix文件夹下,我手动创建zabbix_agentd.pid,并在1秒后消失.真的很奇怪.

use*_*069 5

我有同样的问题,它与selinux有关.所以我通过semanage允许zabbix_agent_t

 yum install policycoreutils-python 

 semanage permissive -a zabbix_agent_t
Run Code Online (Sandbox Code Playgroud)