I'm using zabbix-agent 3.0.2 (revision 59540) on CentOS 7 x86_64 (zabbix is installed via zabbix official repository).
I start zabbix-agent via systemctl start zabbix-agent but after some minutes I get Job for zabbix-agent.service failed because a timeout was exceeded. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
Here is log file after enabling DebugMode=5:
Exactly after starting zabbix-agent:
1385:20160521:091846.252 Starting Zabbix Agent [ns2]. Zabbix 3.0.2 (revision 59540).
1385:20160521:091846.252 **** Enabled features ****
1385:20160521:091846.252 IPv6 support: YES
1385:20160521:091846.252 TLS support: YES
1385:20160521:091846.252 **************************
1385:20160521:091846.252 using configuration file: /etc/zabbix/zabbix_agentd.conf
1385:20160521:091846.252 In load_modules()
1385:20160521:091846.252 End of load_modules():SUCCEED
1385:20160521:091846.253 In init_collector_data()
1385:20160521:091846.253 In zbx_dshm_create() proj_id:112 size:0
1385:20160521:091846.253 End of zbx_dshm_create():SUCCEED shmid:-1
1385:20160521:091846.253 End of init_collector_data()
1385:20160521:091846.253 agent #0 started [main process]
1386:20160521:091846.253 agent #1 started [collector]
1386:20160521:091846.253 In init_cpu_collector()
1387:20160521:091846.253 agent #2 started[listener #1]
1386:20160521:091846.253 End of init_cpu_collector():SUCCEED
1387:20160521:091846.253 In zbx_tls_init_child()
1386:20160521:091846.253 __zbx_zbx_setproctitle() title:'collector [processing data]'
1388:20160521:091846.253 agent #3 started[listener #2]
1386:20160521:091846.254 In update_cpustats()
1388:20160521:091846.254 In zbx_tls_init_child()
1389:20160521:091846.254 agent #4 started[listener #3]
1389:20160521:091846.254 In zbx_tls_init_child()
1387:20160521:091846.255 OpenSSL library (version OpenSSL 1.0.1e-fips 11 Feb 2013) initialized
1388:20160521:091846.255 OpenSSL library (version OpenSSL 1.0.1e-fips 11 Feb 2013) initialized
1387:20160521:091846.255 End of zbx_tls_init_child()
1387:20160521:091846.255 __zbx_zbx_setproctitle() title:'listener #1 [waiting for connection]'
1388:20160521:091846.255 End of zbx_tls_init_child()
1388:20160521:091846.255 __zbx_zbx_setproctitle() title:'listener #2 [waiting for connection]'
1389:20160521:091846.255 OpenSSL library (version OpenSSL 1.0.1e-fips 11 Feb 2013) initialized
1389:20160521:091846.256 End of zbx_tls_init_child()
1389:20160521:091846.256 __zbx_zbx_setproctitle() title:'listener #3 [waiting for connection]'
1386:20160521:091846.262 End of update_cpustats()
1386:20160521:091846.262 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1386:20160521:091847.262 __zbx_zbx_setproctitle() title:'collector [processing data]'
1386:20160521:091847.262 In update_cpustats()
1386:20160521:091847.264 End of update_cpustats()
1386:20160521:091847.264 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1386:20160521:091848.264 __zbx_zbx_setproctitle() title:'collector [processing data]'
1386:20160521:091848.264 In update_cpustats()
1386:20160521:091848.265 End of update_cpustats()
1386:20160521:091848.265 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1386:20160521:091849.265 __zbx_zbx_setproctitle() title:'collector [processing data]'
1386:20160521:091849.265 In update_cpustats()
1386:20160521:091849.267 End of update_cpustats()
1386:20160521:091849.267 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
...
But later lines will repeat and after it get timeout I see these line in the log file:
... 1325:20160521:091833.928 End of update_cpustats()
1325:20160521:091833.928 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1325:20160521:091834.928 __zbx_zbx_setproctitle() title:'collector [processing data]'
1325:20160521:091834.928 In update_cpustats()
1325:20160521:091834.930 End of update_cpustats()
1325:20160521:091834.930 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1325:20160521:091835.930 __zbx_zbx_setproctitle() title:'collector [processing data]'
1325:20160521:091835.930 In update_cpustats()
1325:20160521:091835.932 End of update_cpustats()
1325:20160521:091835.932 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1325:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1324:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1328:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1326:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1327:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1324:20160521:091835.954 zbx_on_exit() called
1324:20160521:091836.031 In zbx_dshm_destroy() shmid:-1
1324:20160521:091836.031 End of zbx_dshm_destroy():SUCCEED
1324:20160521:091836.031 In unload_modules()
1324:20160521:091836.031 End of unload_modules()
1324:20160521:091836.031 Zabbix Agent stopped. Zabbix 3.0.2 (revision 59540).
I start zabbix-agent via systemctl start zabbix-agent but after some minutes I get Job for zabbix-agent.service failed because a timeout was exceeded. See "systemctl status zabbix-agent.service" and "journalctl -xe" for details.
Here is log file after enabling DebugMode=5:
Exactly after starting zabbix-agent:
1385:20160521:091846.252 Starting Zabbix Agent [ns2]. Zabbix 3.0.2 (revision 59540).
1385:20160521:091846.252 **** Enabled features ****
1385:20160521:091846.252 IPv6 support: YES
1385:20160521:091846.252 TLS support: YES
1385:20160521:091846.252 **************************
1385:20160521:091846.252 using configuration file: /etc/zabbix/zabbix_agentd.conf
1385:20160521:091846.252 In load_modules()
1385:20160521:091846.252 End of load_modules():SUCCEED
1385:20160521:091846.253 In init_collector_data()
1385:20160521:091846.253 In zbx_dshm_create() proj_id:112 size:0
1385:20160521:091846.253 End of zbx_dshm_create():SUCCEED shmid:-1
1385:20160521:091846.253 End of init_collector_data()
1385:20160521:091846.253 agent #0 started [main process]
1386:20160521:091846.253 agent #1 started [collector]
1386:20160521:091846.253 In init_cpu_collector()
1387:20160521:091846.253 agent #2 started[listener #1]
1386:20160521:091846.253 End of init_cpu_collector():SUCCEED
1387:20160521:091846.253 In zbx_tls_init_child()
1386:20160521:091846.253 __zbx_zbx_setproctitle() title:'collector [processing data]'
1388:20160521:091846.253 agent #3 started[listener #2]
1386:20160521:091846.254 In update_cpustats()
1388:20160521:091846.254 In zbx_tls_init_child()
1389:20160521:091846.254 agent #4 started[listener #3]
1389:20160521:091846.254 In zbx_tls_init_child()
1387:20160521:091846.255 OpenSSL library (version OpenSSL 1.0.1e-fips 11 Feb 2013) initialized
1388:20160521:091846.255 OpenSSL library (version OpenSSL 1.0.1e-fips 11 Feb 2013) initialized
1387:20160521:091846.255 End of zbx_tls_init_child()
1387:20160521:091846.255 __zbx_zbx_setproctitle() title:'listener #1 [waiting for connection]'
1388:20160521:091846.255 End of zbx_tls_init_child()
1388:20160521:091846.255 __zbx_zbx_setproctitle() title:'listener #2 [waiting for connection]'
1389:20160521:091846.255 OpenSSL library (version OpenSSL 1.0.1e-fips 11 Feb 2013) initialized
1389:20160521:091846.256 End of zbx_tls_init_child()
1389:20160521:091846.256 __zbx_zbx_setproctitle() title:'listener #3 [waiting for connection]'
1386:20160521:091846.262 End of update_cpustats()
1386:20160521:091846.262 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1386:20160521:091847.262 __zbx_zbx_setproctitle() title:'collector [processing data]'
1386:20160521:091847.262 In update_cpustats()
1386:20160521:091847.264 End of update_cpustats()
1386:20160521:091847.264 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1386:20160521:091848.264 __zbx_zbx_setproctitle() title:'collector [processing data]'
1386:20160521:091848.264 In update_cpustats()
1386:20160521:091848.265 End of update_cpustats()
1386:20160521:091848.265 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1386:20160521:091849.265 __zbx_zbx_setproctitle() title:'collector [processing data]'
1386:20160521:091849.265 In update_cpustats()
1386:20160521:091849.267 End of update_cpustats()
1386:20160521:091849.267 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
...
But later lines will repeat and after it get timeout I see these line in the log file:
... 1325:20160521:091833.928 End of update_cpustats()
1325:20160521:091833.928 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1325:20160521:091834.928 __zbx_zbx_setproctitle() title:'collector [processing data]'
1325:20160521:091834.928 In update_cpustats()
1325:20160521:091834.930 End of update_cpustats()
1325:20160521:091834.930 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1325:20160521:091835.930 __zbx_zbx_setproctitle() title:'collector [processing data]'
1325:20160521:091835.930 In update_cpustats()
1325:20160521:091835.932 End of update_cpustats()
1325:20160521:091835.932 __zbx_zbx_setproctitle() title:'collector [idle 1 sec]'
1325:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1324:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1328:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1326:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1327:20160521:091835.954 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
1324:20160521:091835.954 zbx_on_exit() called
1324:20160521:091836.031 In zbx_dshm_destroy() shmid:-1
1324:20160521:091836.031 End of zbx_dshm_destroy():SUCCEED
1324:20160521:091836.031 In unload_modules()
1324:20160521:091836.031 End of unload_modules()
1324:20160521:091836.031 Zabbix Agent stopped. Zabbix 3.0.2 (revision 59540).