root@breve:~# ps aux | grep zabbix_agentd zabbix 1163 0.0 0.0 99408 1512 ? S 09:36 0:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf zabbix 1165 0.0 0.0 99408 2788 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: collector [idle 1 sec] zabbix 1166 0.0 0.0 103540 2832 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection] zabbix 1167 0.0 0.0 103540 2740 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection] zabbix 1168 0.0 0.0 103540 2740 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection] zabbix 1169 0.0 0.0 103668 2620 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec] root 2824 0.0 0.0 11940 944 pts/2 S+ 09:36 0:00 grep --color=auto zabbix_agentd root@breve:~# uptime 09:36:53 up 0 min, 1 user, load average: 0.78, 0.26, 0.09 root@breve:~# service zabbix-agent stop
then it hangs from there, and I checked from other console, zabbix_agentd not yet killed:
root@breve:/var/log/upstart# ps aux | grep zabbix_agentd zabbix 1163 0.0 0.0 99408 1512 ? S 09:36 0:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf zabbix 1165 0.0 0.0 99408 3276 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: collector [idle 1 sec] zabbix 1166 0.0 0.0 103664 2888 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection] zabbix 1167 0.0 0.0 103664 2836 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection] zabbix 1168 0.0 0.0 103664 2888 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection] zabbix 1169 0.0 0.0 103668 2716 ? S 09:36 0:00 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec] root 2932 0.0 0.0 11940 940 pts/9 S+ 09:39 0:00 grep --color=auto zabbix_agentd
/var/log/upstart/zabbix-agent.log is empty, here is Upstart script from Zabbix package:
# Upstart job to start the zabbix agent description "Zabbix agent" author "Christian Kampka <[email protected]>" start on (filesystem and net-device-up IFACE=lo) stop on runlevel [!2345] expect daemon respawn # wait for agent to properly disconnect from server before killing it kill timeout 30 console log env DIR="/var/run/zabbix" pre-start script # stop job from continuing if no config file found for daemon [ ! -f /etc/default/zabbix-agent ] && { stop; exit 0; } # source the config file . /etc/default/zabbix-agent # stop job from continuing if admin has not enabled service in # config file. [ "x$START" = "xyes" ] || { stop; exit 0; } [ -d "$DIR" ] || mkdir "$DIR" chown -R zabbix:zabbix "$DIR" end script script . /etc/default/zabbix-agent exec /usr/sbin/zabbix_agentd -c $CONFIG_FILE end script
Zabbix agent package detail:
Package: zabbix-agent Status: install ok installed Priority: optional Section: unknown Installed-Size: 458 Maintainer: Koadi Terashima <[email protected]> Architecture: amd64 Source: zabbix Version: 1:3.0.2-1+trusty Depends: libc6 (>= 2.17), libcurl3 (>= 7.16.2), libldap-2.4-2 (>= 2.4.7), libssl1.0.0 (>= 1.0.1), adduser, lsb-base Suggests: logrotate Conffiles: /etc/logrotate.d/zabbix-agent 41cd329ede4b2ca47fb3bd85196da6d6 /etc/zabbix/zabbix_agentd.conf 7da30ffecd49619eaf13c00e55813dc6 /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf 1679b8aa367bae0ab42c13e75be669ab /etc/init.d/zabbix-agent 12aee375be60a60bc5dce27296455cfa /etc/init/zabbix-agent.conf 5023e0dddb327a831386538145d6b3ba obsolete /etc/default/zabbix-agent 8c6078dd384df76407933a75a9c3d962 obsolete Description: Zabbix network monitoring solution - agent Zabbix is the ultimate enterprise-level software designed for real-time monitoring of millions of metrics collected from tens of thousands of servers, virtual machines and network devices. . This package provides the software needed to monitor a host using a Zabbix agent. Homepage: http://www.zabbix.com