Ad Widget

Collapse

New Server Offline installation. CentOS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smounche
    Junior Member
    • Jan 2024
    • 2

    #1

    New Server Offline installation. CentOS

    Hello,

    I am new to Zabbix and would like to install it in our organization.
    The installation needs to be done in an environment without internet access, so I require guidance for performing an offline installation.
    I need to pre-download all the necessary files and packages, have them checked for integrity by my organization, and then install them locally on a server.
    Is there an easy step-by-step guide available for this process?

    I plan to install the latest version (6.4) on CentOS.

    Thanks.
  • incama
    Member
    • Jan 2015
    • 65

    #2
    You could install it from source:


    I wouldn't go there if I was you.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Originally posted by incama
      but why from source.. Go to https://repo.zabbix.com/zabbix/6.4/rhel/ choose your centos version (8 or 9) and download all the rpm-s you need. But you also need rpm-s for DB and webserver, which is not part of Zabbix installation...
      Is there an easy step-by-step guide available for this process? No... as it is quite uncommon way of doing things... You need to be quite familiar with installing things from local packages and resolving all the prerequisites for all of them...

      Comment

      • incama
        Member
        • Jan 2015
        • 65

        #4
        Originally posted by cyber

        but why from source.. Go to https://repo.zabbix.com/zabbix/6.4/rhel/ choose your centos version (8 or 9) and download all the rpm-s you need.
        Yeah, I did missed that .

        Comment

        • ISiroshtan
          Senior Member
          • Nov 2019
          • 324

          #5
          The alternative way: get another machine with exactly same OS but with access to internet. Prepare offline repository with all packages you might need (on centos 7 yum was downloading all dependencies automatically). Then tarball the offline repo and move it your offline server. Unzip your offline repo, configure it as one of repositories - do normal installation from this offline repository.

          Command wise for Centos 7 (did not do such on newer version on Centos, but was able to replicate similar logic on Ubuntu 22) it was something like:
          Install prerequisite packages
          Code:
           #yum install yum-plugin-downloadonly yum-utils createrepo​
          Create two dir. One is instalroot for dependency resolution and one for actual packages:
          Code:
          # mkdir /var/tmp/zbx-repo
          # mkdir /var/tmp/zbx-repo-installroot
          Get the packages you need(not a full list, just example):
          Code:
          #yum install --downloadonly --installroot=/var/tmp/zbx-repo-installroot --releasever=7 --downloaddir=/var/tmp/zbx-repo mariadb net-snmp vim ...
          Create repo from downloaded packages:
          Code:
          createrepo --database /var/tmp/zbx-repo
          ​​​
          Tarball resulting folder:
          Code:
          tar -czvf offlinerepo-zbx.tar.gz zbx-repo
          Move the archive to targeted offline machine. ​Extract tarball. Create a repository config file pointing to local folder where you extracted the tarball. Install needed packages from local repo (like #yum --disablerepo=\* --enablerepo=offline-zbx install vim)

          Still would not call it a simple task, but might be way easier then dealing with all the dependencies manually. ​

          Comment

          • smounche
            Junior Member
            • Jan 2024
            • 2

            #6
            Originally posted by cyber

            but why from source.. Go to https://repo.zabbix.com/zabbix/6.4/rhel/ choose your centos version (8 or 9) and download all the rpm-s you need. But you also need rpm-s for DB and webserver, which is not part of Zabbix installation...
            Is there an easy step-by-step guide available for this process? No... as it is quite uncommon way of doing things... You need to be quite familiar with installing things from local packages and resolving all the prerequisites for all of them...

            Thank you for that link.

            can you please tell me what each one on this infrastructure means?

            SRPMS/ 14-Dec-2023 14:42
            aarch64/ 13-Dec-2023 10:23
            x86_64/ 14-Dec-2023 14:42 ​
            And another question, how do I know what rpm-s I need?

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #7
              You need stuff from x86_64. But if you already ask things like what do you need from there ... You should probably try what ISiroshtan suggested... It should resolve your dependencies at once and you should get all needed rpm-s downloaded... If that sounds like rocket surgery.. try to find a friendly linux admin to do this for you ...

              Comment


              • ISiroshtan
                ISiroshtan commented
                Editing a comment
                Getting my proposed solution acknowledged by forum long time member makes me happy
                ... even tho it's not exactly a Zabbix solution

              • cyber
                cyber commented
                Editing a comment
                I learned something from it also... I now know that its possible this way.. Never done it before... but maybe one day I need it.
            Working...