Ad Widget

Collapse

How to install zabbix agent on XCP-ng 8.1.0

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ostad
    Junior Member
    • Jul 2022
    • 10

    #1

    How to install zabbix agent on XCP-ng 8.1.0

    Hi,

    does anyone have an idea how I can install zabbix agent on Xenserver with XCP-ng OS?

    HTML Code:
    # cat /etc/os-release
    NAME="XCP-ng"
    VERSION="8.1.0"
    ID="xenenterprise"
    ID_LIKE="centos rhel fedora"
    VERSION_ID="8.1.0"
    PRETTY_NAME="XCP-ng 8.1.0"
    ANSI_COLOR="0;31"
    HOME_URL="http://xcp-ng.org/"
    BUG_REPORT_URL="https://github.com/xcp-ng/xcp"
    HTML Code:
    # uname -a
    Linux xen1 4.19.0+1 Home SMP Thu Feb 13 17:34:28 CET 2020 x86_64 x86_64 x86_64 GNU/Linux

    I tried to add the repo with this command but I got an error.

    HTML Code:
    # rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-agent-6.0.7-1.el8.x86_64.rpm
    Retrieving https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-agent-6.0.7-1.el8.x86_64.rpm
    warning: /var/tmp/rpm-tmp.ICI8Iv: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
    error: Failed dependencies:
    libcrypto.so.1.1()(64bit) is needed by zabbix-agent-6.0.7-1.el8.x86_64
    libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) is needed by zabbix-agent-6.0.7-1.el8.x86_64
    libpcre2-8.so.0()(64bit) is needed by zabbix-agent-6.0.7-1.el8.x86_64
    libssl.so.1.1()(64bit) is needed by zabbix-agent-6.0.7-1.el8.x86_64
    libssl.so.1.1(OPENSSL_1_1_0)(64bit) is needed by zabbix-agent-6.0.7-1.el8.x86_64
    libssl.so.1.1(OPENSSL_1_1_1)(64bit) is needed by zabbix-agent-6.0.7-1.el8.x86_64

    then I tried to install the dependencies but I got an error again

    Example

    HTML Code:
    # yum install libcrypto.so.1.1 -y
    Failed to set locale, defaulting to C
    No package libcrypto.so.1.1 available.
    Error: Nothing to do

    any idea or help would be grateful

    Thanks

    Ostad
  • Answer selected by Ostad at 29-09-2022, 19:40.
    Ostad
    Junior Member
    • Jul 2022
    • 10

    Solution:


    HTML Code:
    # rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-release-6.0-4.el7.noarch.rpm

    HTML Code:
    # yum clean all
    HTML Code:
    rpm -i http://mirror.centos.org/centos/7/os...el7.x86_64.rpm
    HTML Code:
    yum install zabbix-agent2
    Last edited by Ostad; 15-09-2022, 16:28.

    Comment

    • Ostad
      Junior Member
      • Jul 2022
      • 10

      #2
      Solution:


      HTML Code:
      # rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-release-6.0-4.el7.noarch.rpm

      HTML Code:
      # yum clean all
      HTML Code:
      rpm -i http://mirror.centos.org/centos/7/os...el7.x86_64.rpm
      HTML Code:
      yum install zabbix-agent2
      Last edited by Ostad; 15-09-2022, 16:28.

      Comment

      • Eric_B
        Member
        • Mar 2018
        • 75

        #3
        Originally posted by Ostad
        Solution:


        HTML Code:
        # rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-release-6.0-4.el7.noarch.rpm

        HTML Code:
        # yum clean all
        HTML Code:
        rpm -i http://mirror.centos.org/centos/7/os...el7.x86_64.rpm
        HTML Code:
        yum install zabbix-agent2
        Hello, don't understant this line :

        HTML Code:
        rpm -i http://mirror.centos.org/centos/7/os...el7.x86_64.rpm

        Comment


        • Ostad
          Ostad commented
          Editing a comment
          removed centos7 custom release repo from my machine and installed the right one.
      • MightyJainesh
        Junior Member
        • Oct 2022
        • 1

        #4
        Originally posted by Eric_B

        Hello, don't understant this line :

        HTML Code:
        rpm -i http://mirror.centos.org/centos/7/os...el7.x86_64.rpm
        What is the full URL?

        Comment

        • ngarry1991
          Junior Member
          • Jan 2023
          • 8

          #5
          Did you ever get the full URL?

          Im getting the below error when trying to upgrade

          Error: Package: zabbix-agent-6.0.13-release1.el8.x86_64 (zabbix)
          Requires: libpcre2-8.so.0()(64bit)

          Comment

          • ngarry1991
            Junior Member
            • Jan 2023
            • 8

            #6
            Just to add this was what I ran to get it working:

            rpm -Uvh http://mirror.centos.org/centos/7/os...el7.x86_64.rpm

            Click image for larger version

Name:	image.png
Views:	4201
Size:	3.4 KB
ID:	458838
            Attached Files

            Comment

            • chusmanali20
              Junior Member
              • Aug 2023
              • 1

              #7
              Solution For Zabbix Agent 6.0.21 for Alma-Linux 8.1,8.2 XCP-NG

              Download wget https://repo.almalinux.org/almalinux...8_6.x86_64.rpm

              yum localinstall pcre2-10.32-3.el8_6.x86_64.rpm

              yum install zabbix-agent

              systemctl enable zabbix-agent

              systemctl start zabbix-agent

              systemctl status zabbix-agent
              Thanks​

              Comment

              • datacare
                Junior Member
                • Dec 2021
                • 22

                #8
                Looking for a solution to install Zabbix 7.0 agent on XCP-NG 8.3 the code for above seems to be for older versions. Does anyone have a more up-to-date solution for the newer release?

                Thanks in advance!
                Rob

                Comment

                • datacare
                  Junior Member
                  • Dec 2021
                  • 22

                  #9
                  For anyone trying to get Zabbix Agent 7.0 installed on XCP-NG 8.3 These are the steps that finally worked for me. I ran these steps on several XCP-NG 8.3 hosts and it worked every time

                  Installing a Zabbix Agent on XCP-NG for Zabbix 7.0 involves the following steps:
                  1. yum update
                  2. yum install https://repo.zabbix.com/zabbix/7.0/r...el7.noarch.rpm
                  3. yum update && yum install -y pcre2 --enablerepo=epel,base,updates
                  4. yum install zabbix-agent
                  5. nano /etc/zabbix/zabbix_agentd.conf (edit the configuration file)
                  6. systemctl restart zabbix-agent
                  7. systemctl enable zabbix-agent

                  Comment

                  Working...