*** Edited Subject
In my "Disaster Recovery" environment, I do not have internet access for the CentOS Linux release 7.6.1810 (x86_64) server on which I'm installing a licensed copy of Nagios XI. I downloaded the offline installer, as described in https://assets.nagios.com/downloads/nag ... onment.pdf. It appears to still require internet access to https://repo.nagios.com/, per my tests last week with the nagiosxi-5.6.3-2.el7.x86_64.tar.gz package. We do have internal software repos for the CentOS packages.
I'm not sure why the https://repo.nagios.com repo requirement exists in a "self-contained" installer. Any suggestions? Thanks in advance.
Installation issues with "offline" installer
-
jamiesimon
- Posts: 5
- Joined: Mon Jan 28, 2019 2:01 pm
Installation issues with "offline" installer
Last edited by jamiesimon on Fri Jul 12, 2019 3:13 pm, edited 2 times in total.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: External repo requirements in "offline" installer
I'm confused where you saw the requirement for access to https://repo.nagios.com ?
Where did you see this?
Where did you see this?
-
jamiesimon
- Posts: 5
- Joined: Mon Jan 28, 2019 2:01 pm
Re: External repo requirements in "offline" installer
Hi Scott! Thanks for the quick reply.
I apologize, this post description is now inaccurate; I had our team rebuild the box, and now the installer works better, for reasons that are opaque to me.
The issue I have now is that our users/groups are defined in NIS, where the "nagios" user and group is defined, so I will need to enable the installer to proceed past the "2-usersgroups" and possibly others like the sudoers step.
*********************
Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
ERROR: User 'nagios' was not created - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
*********************
Side note, I had to look very carefully thru the output to find this error, the installer exited with output that suggested success:
*********************
Updated:
nmap.x86_64 2:6.47-1
Complete!
*********************
(I didn't check exit status, my bad.)
-- Jamie
I apologize, this post description is now inaccurate; I had our team rebuild the box, and now the installer works better, for reasons that are opaque to me.
The issue I have now is that our users/groups are defined in NIS, where the "nagios" user and group is defined, so I will need to enable the installer to proceed past the "2-usersgroups" and possibly others like the sudoers step.
*********************
Running './2-usersgroups'...
Adding users and groups...
useradd: user 'nagios' already exists
groupadd: group 'nagios' already exists
groupadd: group 'nagcmd' already exists
ERROR: User 'nagios' was not created - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
*********************
Side note, I had to look very carefully thru the output to find this error, the installer exited with output that suggested success:
*********************
Updated:
nmap.x86_64 2:6.47-1
Complete!
*********************
(I didn't check exit status, my bad.)
-- Jamie
Re: Installation issues with "offline" installer
Please do this:
Download this file to your /tmp directory of your XI server:
Then as root, run these commands:
Then send us the full output of all the commands and any errors if it fails again.
Thank you!
Download this file to your /tmp directory of your XI server:
Code: Select all
https://repo.nagios.com/nagiosxi-offline/nagiosxi-5.6.3-2.el7.x86_64.tar.gzCode: Select all
cd /tmp
rm -rf nagiosxi
tar zxf nagiosxi-5.6.3-2.el7.x86_64.tar.gz
mv nagiosxi nag
cd nag
rpm2cpio nagiosxi-5.6.3-2.el7.x86_64.rpm | cpio -idmv
cd tmp/nagiosxi
touch installed.usersgroups
touch installed.sudoers
./rpminstallThen send us the full output of all the commands and any errors if it fails again.
Thank you!
-
jamiesimon
- Posts: 5
- Joined: Mon Jan 28, 2019 2:01 pm
Re: Installation issues with "offline" installer
Excellent instructions, thank you! This workflow appears successful, tons of output after running rpminstall, but at the end Nagios is running, and I can login via the UI with the default account.
(Note, replace in instructions: "rpm2cpio nagiosxi-5.6.3-2.el7.x86_64.tar.xz" with "rpm2cpio nagiosxi-5.6.3-2.el7.x86_64.rpm")
Thank you very much for your assistance! Was there anything special about this tarball, or can we replicate this workflow going forward with future "offline" packages?
(Note, replace in instructions: "rpm2cpio nagiosxi-5.6.3-2.el7.x86_64.tar.xz" with "rpm2cpio nagiosxi-5.6.3-2.el7.x86_64.rpm")
Thank you very much for your assistance! Was there anything special about this tarball, or can we replicate this workflow going forward with future "offline" packages?
Re: Installation issues with "offline" installer
Updated, good catch!
Use that workflow going forward.
Additionally, you could do the same thing on upgrade if you have issues:
Use that workflow going forward.
Additionally, you could do the same thing on upgrade if you have issues:
Code: Select all
cd /tmp
rm -rf nagiosxi
tar zxf nagiosxi-5.6.3-2.el7.x86_64.tar.gz
mv nagiosxi nag
cd nag
rpm2cpio nagiosxi-5.6.3-2.el7.x86_64.rpm | cpio -idmv
cd tmp/nagiosxi
touch installed.usersgroups
touch installed.sudoers
./rpmupgrade