Profile Build Failed Redhat 7 offline install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bpennin
Posts: 85
Joined: Tue Feb 20, 2018 2:23 pm

Profile Build Failed Redhat 7 offline install

Post by bpennin »

I see the post below on how to fix this but any file I pull in from the Nagios Repositories does not have the nagiosxi.sudoers file in it.

This problem is occurring because the required sudoers entries are missing.

The following steps shows you how to get the correct sudoers entries from the XI installation file. It is not possible to provide all the entries in this KB article as they may change in newer versions of XI. These steps ensure you get the correct entries for your version of Nagios XI.

First you must download the XI installation file to your Nagios XI server. You'll do this with the WGET command. Please refer to the following link to get the correct download link for your version of Nagios XI:

Download Page - Nagios XI Versions

Open an ssh session to your Nagios XI host.

Execute the following commands (use your XI version download link in the wget command):

Code: Select all

cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.6.3.tar.gz


Once downloaded you'll need to use the name of the downloaded file in the next command, in this example xi-5.6.3.tar.gz is the name being used:

Code: Select all

tar xzf xi-5.6.3.tar.gz nagiosxi/nagiosxi/nagiosxi.sudoers --strip-components 2
This will have extracted a file called nagiosxi.sudoers and this file contains all the correct entries.

Run all these commands to fix your /etc/sudoers file to make sure it has all the correct entries:

Code: Select all

grep -v NAGIOSXI /etc/sudoers > /etc/sudoers.new
mv -f /etc/sudoers.new /etc/sudoers
rm -rf /etc/sudoers.d/nagiosxi
sed -i 's/^Defaults    requiretty/#Defaults    requiretty/g' /etc/sudoers
cat /tmp/nagiosxi.sudoers >> /etc/sudoers
chmod 440 /etc/sudoers
After making these changes try and download the system profile, your problem should be resolved.
Last edited by scottwilkerson on Tue Jul 23, 2019 7:55 am, edited 1 time in total.
Reason: add code wraps
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Profile Build Failed Redhat 7 offline install

Post by scottwilkerson »

Is there a question here or is this just for information purposes?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bpennin
Posts: 85
Joined: Tue Feb 20, 2018 2:23 pm

Re: Profile Build Failed Redhat 7 offline install

Post by bpennin »

The question is how to fix the issue without using the wget tar files. I am using the offline tar files and the file nagiosxi.sudoers is not in it. Is there another way to fix this issue or another way to get the nagiosxi.sudoers file?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Profile Build Failed Redhat 7 offline install

Post by scottwilkerson »

You can still download the file manually (not through wget), extract the tarball, and the file will be found in

Code: Select all

nagiosxi/nagiosxi/nagiosxi.sudoers
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked