This is a cache of https://support.nagios.com/kb/article/nagios-xi-apply-configuration-fails-backend-login-to-the-core-configuration-failed-532.html. It is a snapshot of the page at 2025-05-14T00:08:54.337+0000.
Nagios <strong>xi</strong> - Apply Configuration Fails - Backend login to the Core Configuration failed
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, "Apply Configuration" from Core Configuration Manager and your problem should be resolved.

NOTE:

Newer versions of Nagios xi no longer use wget, so if you still are receiving the error message after the above change, run the following commands in a root SSH session on the Nagios server to diagnose the problem:

chage -l nagios
su - nagios
cd /usr/local/nagiosxi/scripts
time ./reconfigure_nagios.sh

This should show what is causing the Backend login error. See the Strict_Trans_Tables KB article for possible resolution.

 

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!

2.33 (3)
Article Rating (3 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 - STRICT_TRANS_TABLES
Viewed 7947 times since Thu, Nov 16, 2017
Nagios xi - Migrate Performance Data
Viewed 13100 times since Tue, Jan 26, 2016
Nagios xi - mysql_error out of range value for column
Viewed 6700 times since Tue, Aug 14, 2018
Nagios xi - Missing localhost Alerts
Viewed 6912 times since Sun, Nov 5, 2017
Nagios xi - Empty Screen for Wizard, Component, Dashlet
Viewed 8075 times since Wed, Jan 27, 2016
PHPMailer - Troubleshooting Using Debug Logging
Viewed 37173 times since Tue, Aug 14, 2018
Nagios xi - Scheduled Downtime Not Working
Viewed 7958 times since Mon, Oct 10, 2016
Nagios xi - Installing Latest SourceGuardian Loaders
Viewed 8128 times since Mon, Jun 18, 2018
Nagios xi - Configuration Applies, but still get "Configuration File Is Out Of Date" Error
Viewed 5396 times since Tue, Jan 26, 2016
Nagios xi - Uploaded plugin returns "/bin/bash^M: bad interpreter: No such file or directory"
Viewed 7413 times since Thu, Feb 25, 2016