Hello. I'm running into an issue with an offline install hosted on CentOS VM. I have the repos hosted locally, and can see it has access to the "AppStream" and "Base" repos. However, I do not have access to the "Extras". When I do the "./fullinstall" command I get a list of things it was not able to access.
I basically followed these directions to host the repos. https://www.tecmint.com/create-local-yu ... -centos-8/
The instructions for offline installs by Nagios only say you need access to the "base repositories" for a CentOS install. Just wondering how I move forward with this. The location it is being installed in can't access the outside internet at all.
Offline Install On CentOS
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Offline Install On CentOS
Offline install for CentOS 8 currently isn't supported but will be coming soon when the 5.7.x offline release is built.
This will likely take several weeks from now, so I do not have an exact time-frame.
This will likely take several weeks from now, so I do not have an exact time-frame.
Re: Offline Install On CentOS
Got it. Might recommend you ask the people responsible for this (https://repo.nagios.com/?repo=offline) page to update it to reflect that. Thank you!scottwilkerson wrote:Offline install for CentOS 8 currently isn't supported but will be coming soon when the 5.7.x offline release is built.
This will likely take several weeks from now, so I do not have an exact time-frame.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Offline Install On CentOS
Will do!BrownB wrote: Got it. Might recommend you ask the people responsible for this (https://repo.nagios.com/?repo=offline) page to update it to reflect that. Thank you!
Re: Offline Install On CentOS
Just want to provide an update to anyone else struggling with a CentOS offline install. I finally got mine to work.
env: CentOS-7-x86_64-DVD-2003
tarball: nagiosxi-5.7.1-1.el7.x86_64.tar.gz
So basically the offline directions and text given for a CentOS install is not enough. The "base" repositories for CentOS do not have all the packages to do the offline install. You need to download the "CentOS-7-x86_64-Everything-2003" or the appropriate "Everything" iso for your version of CentOS in addition to the base ISO you will be installing CentOS from. Mind you I am doing this in a VM so some of the mounting stuff may not be necessary for you to access your files.
1. do a minimal install of CentOS
2. mount your CentOS ISO with the base repositories and configure/create a repo file to point to it. Be sure to run a "yum clean all" and "yum repo list" to verify you did this right. (https://www.thegeekdiary.com/centos-rhe ... unted-dvd/) Feel free to find different instructions on this as well.
3. mkdir /tmp/rpms/
4. move your nagios tarball to the "/tmp/rpms/". I am on an offline Windows machine accessing the VM I am installing NagiosXI on so I used WinSCP for this.
5. cd /tmp/rpms/
6. Expand the tarball with "tar xzf (tarball filename) as shown on the offline install directions.
6. move the files listed in the optional channel packages part of the offline install instructions to the newly created "/tmp/rpms/nagiosxi/" directory. These files will be on the "Everything" DVD. The DVD itself will be too large for you to burn an iso of the whole thing unless you are using bluray disc. You won't need everything on there to begin with. I put the packages I needed on a DVD, put it in the offline Windows box I was accessing the VM from, then used WinSCP to drag them into the folder. You could mount the disc if you don't have the ability to use a file transfer program or use removable media. You just need to be able to move the packages into the /tmp/rpms/nagiosxi/ directory.
If on CentOS 6 use the RHEL 6 packages, if on CentOS 7 use the RHEL 7 packages.
RHEL 6 Optional Channel Packages
graphviz-gd.x86_64
perl-IO-stringy.noarch
perl-Parse-RecDescent.noarch
perl-XML-Simple.noarch
php-mbstring.x86_64
php-snmp.x86_64
rrdtool-perl.x86_64
rrdtool-python.x86_64
RHEL 7 Optional Channel Packages
dejavu-lgc-sans-fonts.noarch
dejavu-lgc-sans-mono-fonts.noarch
graphviz-gd.x86_64
perl-Crypt-DES.x86_64
perl-Parse-RecDescent.noarch
php-mbstring.x86_64
php-snmp.x86_64
7. Once the files are in there, change directories to the nagiosxi folder
cd /tmp/rpms/nagiosxi
8. run the full install and watch it finish.
./fullinstall
9. ???
10. Profit!
This seems like a lot but this should streamline this for anyone else so you don't spend as much time on this as I had to. Apologies if it is hard to follow as well. Tried my best!
env: CentOS-7-x86_64-DVD-2003
tarball: nagiosxi-5.7.1-1.el7.x86_64.tar.gz
So basically the offline directions and text given for a CentOS install is not enough. The "base" repositories for CentOS do not have all the packages to do the offline install. You need to download the "CentOS-7-x86_64-Everything-2003" or the appropriate "Everything" iso for your version of CentOS in addition to the base ISO you will be installing CentOS from. Mind you I am doing this in a VM so some of the mounting stuff may not be necessary for you to access your files.
1. do a minimal install of CentOS
2. mount your CentOS ISO with the base repositories and configure/create a repo file to point to it. Be sure to run a "yum clean all" and "yum repo list" to verify you did this right. (https://www.thegeekdiary.com/centos-rhe ... unted-dvd/) Feel free to find different instructions on this as well.
3. mkdir /tmp/rpms/
4. move your nagios tarball to the "/tmp/rpms/". I am on an offline Windows machine accessing the VM I am installing NagiosXI on so I used WinSCP for this.
5. cd /tmp/rpms/
6. Expand the tarball with "tar xzf (tarball filename) as shown on the offline install directions.
6. move the files listed in the optional channel packages part of the offline install instructions to the newly created "/tmp/rpms/nagiosxi/" directory. These files will be on the "Everything" DVD. The DVD itself will be too large for you to burn an iso of the whole thing unless you are using bluray disc. You won't need everything on there to begin with. I put the packages I needed on a DVD, put it in the offline Windows box I was accessing the VM from, then used WinSCP to drag them into the folder. You could mount the disc if you don't have the ability to use a file transfer program or use removable media. You just need to be able to move the packages into the /tmp/rpms/nagiosxi/ directory.
If on CentOS 6 use the RHEL 6 packages, if on CentOS 7 use the RHEL 7 packages.
RHEL 6 Optional Channel Packages
graphviz-gd.x86_64
perl-IO-stringy.noarch
perl-Parse-RecDescent.noarch
perl-XML-Simple.noarch
php-mbstring.x86_64
php-snmp.x86_64
rrdtool-perl.x86_64
rrdtool-python.x86_64
RHEL 7 Optional Channel Packages
dejavu-lgc-sans-fonts.noarch
dejavu-lgc-sans-mono-fonts.noarch
graphviz-gd.x86_64
perl-Crypt-DES.x86_64
perl-Parse-RecDescent.noarch
php-mbstring.x86_64
php-snmp.x86_64
7. Once the files are in there, change directories to the nagiosxi folder
cd /tmp/rpms/nagiosxi
8. run the full install and watch it finish.
./fullinstall
9. ???
10. Profit!
This seems like a lot but this should streamline this for anyone else so you don't spend as much time on this as I had to. Apologies if it is hard to follow as well. Tried my best!
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Offline Install On CentOS
Hi,
Glad you got it working and thanks for taking the time to share your solution!Just want to provide an update to anyone else struggling with a CentOS offline install. I finally got mine to work.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!