Zabbix Agent配置完成后无法启动Permission denied

今天在节点机器上新安装的Zabbix Agent无法启动。

1.查看Zabbix Agent日志文件才究其原因。

# cat /var/log/zabbix/zabbix_agentd.log

63133:20170601:092700.920 **************************
63133:20170601:092700.920 using configuration file: /etc/zabbix/zabbix_agentd.conf
63133:20170601:092700.920 cannot set resource limit: [13] Permission denied
63133:20170601:092700.920 cannot disable core dump, exiting...
63137:20170601:092711.171 Starting Zabbix Agent [cong171163]. Zabbix 3.2.6 (revision 67849).
63137:20170601:092711.171 **** Enabled features ****
63137:20170601:092711.171 IPv6 support: YES
63137:20170601:092711.171 TLS support: YES
63137:20170601:092711.171 **************************
......

2.此时只需要关闭Selinux,两种方案;

2.1.临时关闭

# setenforce 0

2.2.永久关闭(reboot host)

# vim /etc/selinux/config

SELINUX=enforcing

SELINUX=disabled

3.操作完成后,再次启动zabbix-agent服务

# systemctl start zabbix-agent.service

4.查看端口

# ss -tnl
State Recv-Q Send-Q Local Address:Port Peer Address:Port 
LISTEN 0 128 *:22 *:*
LISTEN 0 100 127.0.0.1:25 *:* 
LISTEN 0 128 *:10050 *:*
LISTEN 0 80 :::3306 :::*
LISTEN 0 128 :::22 :::*
LISTEN 0 100 ::1:25 :::*
LISTEN 0 128 :::10050 :::*

zabbix agent启动成功,10050端口已经运行。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Captcha Code