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

Details

    • Problem report
    • Status: Reopened
    • Trivial
    • Resolution: Unresolved
    • 6.0.5
    • None
    • Agent2 plugin (N)
    • None
    • Ubuntu 20.04 with official Zabbix Apt Repo

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: