Ad Widget

Collapse

Issue installing Zabbix6 agent on Rocky Linux 8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rohaldos
    Junior Member
    • May 2024
    • 5

    #1

    Issue installing Zabbix6 agent on Rocky Linux 8

    Hi,

    I am experiencing some problems with never happened before. When I install zabbix6 agent (not agent2) on Rocky Linux it does create the /etc/zabbix but the configuration file is in /etc. I did install zabbix agent6 on CentOS7 never had this problem.
    If I install zabbix6 agent2 the configuration file gets created in /etc/zabbix/
    My question is this a normal behaviour for installing zabbix6 agent on Rocky Linux 8?

    Kind Regards,
    Antonio
  • Rohaldos
    Junior Member
    • May 2024
    • 5

    #2
    Quick update

    I updated the zabbix-agent.service to the following and moved the zabbix_agentd.conf to /etc/zabbix

    ExecStart=/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -f

    I still don't understand why the zabbix agent installation process would create the /etc/zabbix and put the zabbix_agentd.conf in /etc.

    Kind Regards,
    Antonio

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #3
      Originally posted by Rohaldos
      I am experiencing some problems with never happened before. When I install zabbix6 agent (not agent2) on Rocky Linux it does create the /etc/zabbix but the configuration file is in /etc.
      That sounds like a packaging bug. What version of the zabbix-agent package, specifically, did you download?

      I just checked the 6.0.29-release1.el8 RPM and it looks correct. zabbix-agent.conf is packaged in /etc/zabbix/

      Code:
      $ rpm -q -l -p zabbix-agent-6.0.29-release1.el8.x86_64.rpm
      warning: zabbix-agent-6.0.29-release1.el8.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
      /etc/logrotate.d/zabbix-agent
      /etc/zabbix/zabbix_agentd.conf
      /etc/zabbix/zabbix_agentd.d
      /usr/lib/.build-id
      /usr/lib/.build-id/b7
      /usr/lib/.build-id/b7/8a50a77f84fcba17b5d3a3adc23432efac9a3d
      /usr/lib/systemd/system/zabbix-agent.service
      /usr/lib/tmpfiles.d/zabbix-agent.conf
      /usr/sbin/zabbix_agentd
      /usr/share/doc/zabbix-agent
      /usr/share/doc/zabbix-agent/AUTHORS
      /usr/share/doc/zabbix-agent/COPYING
      /usr/share/doc/zabbix-agent/ChangeLog
      /usr/share/doc/zabbix-agent/NEWS
      /usr/share/doc/zabbix-agent/README
      /usr/share/doc/zabbix-agent/userparameter_mysql.conf
      /usr/share/man/man8/zabbix_agentd.8.gz
      /var/log/zabbix
      /var/run/zabbix

      Comment

      • Rohaldos
        Junior Member
        • May 2024
        • 5

        #4
        Originally posted by tim.mooney

        That sounds like a packaging bug. What version of the zabbix-agent package, specifically, did you download?

        I just checked the 6.0.29-release1.el8 RPM and it looks correct. zabbix-agent.conf is packaged in /etc/zabbix/

        Code:
        $ rpm -q -l -p zabbix-agent-6.0.29-release1.el8.x86_64.rpm
        warning: zabbix-agent-6.0.29-release1.el8.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
        /etc/logrotate.d/zabbix-agent
        /etc/zabbix/zabbix_agentd.conf
        /etc/zabbix/zabbix_agentd.d
        /usr/lib/.build-id
        /usr/lib/.build-id/b7
        /usr/lib/.build-id/b7/8a50a77f84fcba17b5d3a3adc23432efac9a3d
        /usr/lib/systemd/system/zabbix-agent.service
        /usr/lib/tmpfiles.d/zabbix-agent.conf
        /usr/sbin/zabbix_agentd
        /usr/share/doc/zabbix-agent
        /usr/share/doc/zabbix-agent/AUTHORS
        /usr/share/doc/zabbix-agent/COPYING
        /usr/share/doc/zabbix-agent/ChangeLog
        /usr/share/doc/zabbix-agent/NEWS
        /usr/share/doc/zabbix-agent/README
        /usr/share/doc/zabbix-agent/userparameter_mysql.conf
        /usr/share/man/man8/zabbix_agentd.8.gz
        /var/log/zabbix
        /var/run/zabbix
        Hello,

        Thank you for the response.

        Here is what I have installed:

        rpm -qa | grep zabbix
        zabbix6.0-agent-6.0.29-1.el8.x86_64
        zabbix6.0-6.0.29-1.el8.x86_64
        zabbix6.0-selinux-6.0.29-1.el8.noarch
        zabbix-release-6.0-4.el8.noarch

        Kind Regards,
        Antonio

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          If you point a web browser at the official Zabbix repo for RHEL 8, here:



          you can browse the package list.

          Your package is named "zabbix6.0-agent", but I don't see any agent packages in the repo that have "zabbix6.0" at the start of the name. It makes me wonder if maybe the packages are coming from somewhere else.

          What does the command

          Code:
          sudo yum info zabbix6.0-agent
          output?

          Comment

          • Rohaldos
            Junior Member
            • May 2024
            • 5

            #6
            Originally posted by tim.mooney
            If you point a web browser at the official Zabbix repo for RHEL 8, here:



            you can browse the package list.

            Your package is named "zabbix6.0-agent", but I don't see any agent packages in the repo that have "zabbix6.0" at the start of the name. It makes me wonder if maybe the packages are coming from somewhere else.

            What does the command

            Code:
            sudo yum info zabbix6.0-agent
            output?
            Hello,

            Thank you for the response here is the output:

            dnf info zabbix6.0-agent
            Last metadata expiration check: 1:10:11 ago on Tue 21 May 2024 16:52:10 BST.
            Installed Packages
            Name : zabbix6.0-agent
            Version : 6.0.29
            Release : 1.el8
            Architecture : x86_64
            Size : 650 k
            Source : zabbix6.0-6.0.29-1.el8.src.rpm
            Repository : @System
            From repo : epel
            Summary : Zabbix agent
            URL : https://www.zabbix.com
            License : GPLv2+
            Description : Zabbix agent, to be installed on monitored systems

            Kind Regards,
            Antonio

            Comment

            • tim.mooney
              Senior Member
              • Dec 2012
              • 1427

              #7
              Originally posted by Rohaldos

              dnf info zabbix6.0-agent

              Name : zabbix6.0-agent
              From repo : epel
              Summary : Zabbix agent
              As you can see, the 'zabbix6.0-agent' came from the EPEL repo, not the official Zabbix repo.

              You may want to post on EPEL-specific forums to ask if there's an issue with the config file or the config directory for that package.

              If you want to prefer the official Zabbix packages, rather than these alternate packages from EPEL, you probably need to look into setting repository priorities: https://access.redhat.com/solutions/45244

              Comment

              • Rohaldos
                Junior Member
                • May 2024
                • 5

                #8
                Hello Tim,
                Thank you for the response.

                Kind Regards,

                Comment

                Working...