Installation issues with "offline" installer

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jamiesimon
Posts: 5
Joined: Mon Jan 28, 2019 2:01 pm

Installation issues with "offline" installer

Post by jamiesimon »

*** 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.
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

Post by scottwilkerson »

I'm confused where you saw the requirement for access to https://repo.nagios.com ?

Where did you see this?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jamiesimon
Posts: 5
Joined: Mon Jan 28, 2019 2:01 pm

Re: External repo requirements in "offline" installer

Post by jamiesimon »

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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation issues with "offline" installer

Post by ssax »

Please do this:

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.gz
Then as root, run these commands:

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
./rpminstall

Then 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

Post by jamiesimon »

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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation issues with "offline" installer

Post by ssax »

Updated, good catch!

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
Locked