zabbix-agent2 7.0.26 and 7.4.10 broken on SUSE Linux Enterprise Server 15 SP7 because of wrong plugin path

XMLWordPrintable

      Steps to reproduce:

      1. Upgrade zabbix-agent2 and zabbix-agent2 plugins to version 7.0.26 or 7.4.10 on "SUSE Linux Enterprise Server 15 SP7"
      2. Information for package zabbix-agent2:
        --------------------------------------
        Repository     : Zabbix_Official_Repository
        Name           : zabbix-agent2
        Version        : 2:7.0.26-release1.sles15
        Arch           : x86_64
        Vendor         :
        Support Level  : unknown
        Installed Size : 20.2 MiB
        Installed      : Yes
        Status         : up-to-date
        Source package : zabbix-2:7.0.26-release1.sles15.src
        Upstream URL   : http://www.zabbix.com/

      On 7.0.26 and on 7.4.10.

      The location where the plugins are installed is wrong:
      -> /usr/lib/zabbix/zabbix-agent2-plugin-postgresql

                On 7.0.25 the install location is:
                -> /usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql

      And the config shows:

      Plugins.PostgreSQL.System.Path=/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql

      After upgrade the zabbix-agent2 cannot not find the zabbix-agent2-plugin because they are installed in the wrong location /usr/lib/zabbix/ instead of /usr/sbin/

      And the zabbix agent2 refuses to start

      systemctl status zabbix-agent2.service
      ● zabbix-agent2.service - Zabbix Agent 2
           Loaded: loaded (/usr/lib/systemd/system/zabbix-agent2.service; disabled; preset: disabled)
           Active: activating (auto-restart) (Result: exit-code) since Fri 2026-05-29 13:07:52 CEST; 3s ago
          Process: 4595 ExecStart=/usr/sbin/zabbix_agent2 -c $CONFFILE (code=exited, status=1/FAILURE)
         Main PID: 4595 (code=exited, status=1/FAILURE)
              CPU: 11ms 

      Result:

      ░░ The job identifier is 1396694.
      May 29 12:46:46 platform3 zabbix_agent2[20044]: Validating configuration file "/etc/zabbix/zabbix_agent2.conf"
      May 29 12:46:46 platform3 zabbix_agent2[20044]: zabbix_agent2 [20044]: ERROR: Cannot register plugins: failed to register metrics of plugin "MongoDB": failed to start plugin: failed to start plugin proce>
      May 29 12:46:46 platform3 systemd[1]: zabbix-agent2.service: Control process exited, code=exited, status=1/FAILURE
      ░░ Subject: Unit process exited 

      Expected:

      zabbix-agent2 is running with plugins loaded and version 7.0.26 and 7.4.10

      Change the path of the zabbix-agent2-plugins to /usr/bin

            Assignee:
            Zabbix Support Team
            Reporter:
            Joe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: