Need help?

Our experts have had an average response time of 12.14 minutes in September 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Apply Configuration Fails in Nagios Server – What to do

by | Mar 29, 2021

When trying to Apply Configuration, it fails in Nagios? We can help you in resolving it.

Here at Bobcares, we have seen several such Nagios-related issues as part of our Server Management Services for web hosts and online service providers.

Today we will take a look at the causes of this problem. Also, let us see how our Support Engineers tackle this problem.


Why ‘Apply Configuration’ fails in Nagios?

Before we get into the solution part of this error message, let us see what causes this error to occur.

Here is the complete error message that displays when Apply Configuration fails.

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.

The main reason here could be that the Nagios XI server is unable to resolve the “localhost”.


What to do when Apply Configuration fails in Nagios

Now let us see how our Support Engineers assist our customers in fixing this Nagios problem.

First, we open an SSH session to our Nagios XI server. Then we execute the following commands:

su nagios
cd /usr/local/nagiosxi/scripts

As a result of the above command, we receive the below output.

URL: http://localhost/nagiosxi/includes/components/ccm/
/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&[email protected]' -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”

In the last three lines, we can see that the wget command is complaining that it cannot resolve localhost.

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

cat /etc/hosts

As a result of the above command, we see the below output. localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 xi-c6x-x64
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 xi-c6x-x64

We can see here that there are no “localhost” entries at all. However, there are similar entries but not one for “localhost”.

So we edit /etc/hosts file and make sure there are localhost entries in it. For example, we make the below changes in the file. 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, we try and “Apply Configuration” from Core Configuration Manager and the problem should be resolved.

[Need any further assistance in fixing Nagios errors? – We are here to help you]



In short, this problem arises when the Nagios XI server is unable to resolve the “localhost”. Today, we saw the solution our Support Engineers provide a solution this Nagios problem.


Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";


Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center


Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid


Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie


These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.