Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21223

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

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.5
    • Agent2 plugin (N)
    • None
    • 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.

            zabbix.support Zabbix Support Team
            v99glu v99glu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: