-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.0.5
-
None
-
Ubuntu 20.04 with official Zabbix Apt Repo
Steps to reproduce:
- Install Zabbix Agent2
- Put ControlSocket=/run/zabbix/agent.sock into zabbix_agent2.d/controlsock.conf
- Run zabbix-agent2.service
Result:
Zabbix Agent2 creates control socket file ControlSocket=/tmp/agent.sock
Expected:
Zabbix Agent2 creates control socket file ControlSocket=/run/zabbix/agent.sock
Reason:
Directive Include=/etc/zabbix/zabbix_agent2.d/*.conf goes before directive ControlSocket= in zabbix_agent2.conf, so any definition of ControlSocket in included files will be overridden.
Suggested fix:
Move directive Include=/etc/zabbix/zabbix_agent2.d/*.conf to the end of zabbix_agent2.conf.