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

CentOS 6 Zabbix Agent 2: Default socket path issue in Package

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.25, 7.0.2
    • Packages (C)
    • None

      I encountered an issue with starting the Zabbix Agent 2 on CentOS 6 after its installation.

      Zabbix agent2 service failed to start. Running the service did not generate any log.
      Therefore, I confirmed the error below by executing the binary directly and the following error was encountered:

      # zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf
      2024/01/16 10:34:51.475218 cannot register plugins: failed to create plugin listener with socket path, /run/zabbix/agent.plugin.sock, listen unix /run/zabbix/agent.plugin.sock: bind: no such file or directory
      zabbix_agent2 [2061]: ERROR: cannot register plugins: failed to create plugin listener with socket path, /run/zabbix/agent.plugin.sock, listen unix /run/zabbix/agent.plugin.sock: bind: no such file or directory
      

      Resolved this issue by changing the settings in the zabbix_agent2.conf file from "/run/zabbix/..." to "/var/run/zabbix/..."

      PluginSocket=/var/run/zabbix/agent.plugin.sock
      ControlSocket=/var/run/zabbix/agent.sock
      

      I believe this issue might be related to the default configuration paths in the CentOS 6 RPM package.

            tbross Tomass Janis Bross
            JKKim Kim Jongkwon
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: