-
Incident report
-
Resolution: Duplicate
-
Minor
-
None
-
2.0.0
-
None
-
ubuntu LTS 12.04
Ubuntu upstart and possibly other init systems, rely on the fact that the zabbix_agentd will fork twice to track the pid of the zabbix_agent. The upstart config file included in zabbix is configured that way.
However before zabbix_agent daemonizes itself it may start various system tools to query information. In my case, it would start 'hostname' first to query the current hostname since it wasn't specified in the agent config file. (why not use gethostname directly??). Due to this, upstart would track the wrong pid and wasn't able to stop it.
Now there may be multiple solutions to this, including having upstart use the PID file (if that's possible), but I think it would be more proper if zabbix_agentd doesn't start any other processes until it has properly daemonized itself.
This bug may possibly also be present in zabbix_proxy and zabbix_server.
- is duplicated by
-
ZBX-5616 numerous "timeout while executing a shell script" on system.uname and system.hostname
- Closed