Parameter ControlSocket cannot be redefined in zabbix_agent2.d/*.conf

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 6.0.5
    • Component/s: Agent2 plugin (G)
    • None
    • Environment:
      Ubuntu 20.04 with official Zabbix Apt Repo

      Steps to reproduce:

      1. Install Zabbix Agent2
      2. Put ControlSocket=/run/zabbix/agent.sock into zabbix_agent2.d/controlsock.conf
      3. 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.

            Assignee:
            Zabbix Support Team
            Reporter:
            v99glu
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: