Label archiving: agent

Permission denied cannot be started after Zabbix Agent configuration is completed

The newly installed Zabbix Agent on the node machine cannot be started today.

1. Check the Zabbix Agent log file to find out the reason.

 # 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. At this time, you only need to turn off Selinux. There are two schemes;

2.1. Temporary closing

 # setenforce 0

2.2. Permanent shutdown (reboot host)

 # vim /etc/selinux/config SELINUX=enforcing

change

 SELINUX=disabled

3. After the operation is completed, start the zabbix agent service again

# systemctl start zabbix-agent.service

4. View ports

 # 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 starts successfully, and port 10050 is running.