Home » Categories » Products » Nagios XI » Troubleshooting » Common Problems

Nagios XI - Apply Configuration Fails - Backend login to the Core Configuration failed

Problem Description

Apply Configuration fails with the following error:

Backend login to the Core Config Manager failed.

An error occurred while attempting to apply your configuration to Nagios Core.
Monitoring engine configuration files have been rolled back to their last known good checkpoint.

 

This problem can be caused by the Nagios XI server being unable to resolve "localhost".

 

 

Diagnosing The Problem

Open an SSH session to your Nagios XI server and execute the following commands:

su nagios
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh

 

You receive the following output:

URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&username=nagiosxi&password=n@gweb' -O nagiosql.login--2016-08-03 10:10:46--  http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... failed: Name or service not known.
wget: unable to resolve host address “localhost”
NAGIOSQL LOGIN FAILED!

 

You can see in the last three lines that the wget command is complaining that it cannot resolve localhost.

If you execute the following command you can see the contents of the /etc/hosts file:

cat /etc/hosts

 

Here is the output:

127.0.0.1    localhost.localdomain    localhost.localdomain    localhost4    localhost4.localdomain4        xi-c6x-x64
::1    localhost.localdomain    localhost.localdomain    localhost6    localhost6.localdomain6        xi-c6x-x64

 

If you look at the output you can see that there are no "localhost" entries, there are similar entries but not one for "localhost".

 

 

Resolving The Problem

Edit your /etc/hosts file and make sure there are localhost entries. For example:

127.0.0.1    localhost.localdomain    localhost.localdomain    localhost4    localhost4.localdomain4    localhost    xi-c6x-x64
::1    localhost.localdomain    localhost.localdomain    localhost6    localhost6.localdomain6    localhost    xi-c6x-x64

 

After making these changes try and "Apply Configuration" from Core Configuration Manager and your problem should be resolved.

 

 

Final Thoughts

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

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

3 (2)
Article Rating (2 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 - WMI Troubleshooting
Viewed 8597 times since Mon, Apr 24, 2017
Nagios XI - Core Configuration Mananger Display Issues
Viewed 1384 times since Tue, Jan 26, 2016
Nagios XI - Oracle Services Critical After Nagios XI Upgrade
Viewed 1712 times since Wed, Jan 27, 2016
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 1801 times since Thu, Feb 25, 2016
PHPMailer - Troubleshooting Using Debug Logging
Viewed 3628 times since Tue, Aug 14, 2018
Nagios XI - Downloading A System Profile
Viewed 1819 times since Wed, Jul 19, 2017
Nagios XI - Uploaded plugin returns "/bin/bash^M: bad interpreter: No such file or directory"
Viewed 2300 times since Thu, Feb 25, 2016
XI 5.4 monitoring engine not running
Viewed 3366 times since Mon, Feb 6, 2017
Nagios XI - MRTG Reports SNMP_Session Errors
Viewed 1581 times since Wed, Jul 27, 2016
Nagios XI - ERROR: PostgresQL not running - exiting
Viewed 1614 times since Tue, Jan 26, 2016