This is a cache of https://support.nagios.com/kb/article/nagios-xi-profile-build-failed-533.html. It is a snapshot of the page at 2025-05-12T00:20:56.954+0000.
Nagios <strong>xi</strong> - Profile Build Failed
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/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

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 - Changing The System Time
Viewed 9090 times since Mon, Jan 25, 2016
CCM says unapplied changes exist, but none listed
Viewed 6295 times since Mon, Feb 27, 2017
Nagios xi - How to Change Default Passwords
Viewed 10036 times since Wed, Jan 27, 2016
Nagios xi - Update Components And Wizards
Viewed 5366 times since Sun, Feb 3, 2019
SNMP Traps - Standard Handler vs Embedded Handler
Viewed 14656 times since Mon, Oct 24, 2016
Nagios xi - MSSQL Wizards - Adaptive Server connection failed
Viewed 11995 times since Thu, Aug 3, 2017
Nagios xi - MySQL/MariaDB - Max Connections
Viewed 73610 times since Thu, Jun 2, 2016
Nagios xi - Enabling Memcached Support
Viewed 6188 times since Wed, Jan 27, 2016
Adding MATCH Statements in the SNMP Trap Interface
Viewed 5154 times since Fri, Jul 30, 2021
Using The Generic Plugin Monitoring Wizard In Nagios xi
Viewed 1103 times since Tue, Dec 17, 2024