Home » Categories » Multiple Categories

Nagios XI - Profile Build Failed

Problem Description

When you go to Admin > System Config > System Profile and try to download the profile you receive the following error:

PROFILE BUILD FAILED

Array
(
)

CODE: 1

 
 

Resolving The Problem

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):

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:

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:

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.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Advanced Features of Nagios XI - NWC14
Viewed 4222 times since Thu, Feb 4, 2016
Nagios XI - Resetting The nagiosadmin Password
Viewed 41180 times since Mon, Jan 25, 2016
Nagios XI - ERROR: unable to open include file: conf.d/*.cfg
Viewed 5769 times since Sun, May 29, 2016
Nagios XI - Issues with mod_gearman and Performance Data Newlines: "\n"
Viewed 3567 times since Tue, Feb 2, 2016
PHP 7.2 to 7.4 Upgrade Instructions for CentOS Stream 8
Viewed 3467 times since Wed, Feb 2, 2022
Nagios XI - Configuration Applies, No Changes Take Place
Viewed 7349 times since Tue, Jan 27, 2015
Nagios XI - SourceGuardian Errors 2009R1.2C
Viewed 3965 times since Tue, Feb 2, 2016
Nagios XI - SNMP MIB Upload Problems
Viewed 7670 times since Mon, Apr 10, 2017
Managing Service Templates
Viewed 6083 times since Mon, Jun 28, 2021
Nagios XI - Introduction to Event Handlers
Viewed 7335 times since Thu, Jan 28, 2016