Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

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

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

Configuration verification failed in Nagios – Quick fix

by | Mar 31, 2021

Is your configuration verification failed in Nagios? We can help you fix 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’ll take a how to fix this Nagios error.


Know more details about why configuration verification failed in Nagios

Recently, we had a customer who received the below error message in Core Configuration Manager (CCM), when he Apply Configuration.

Configuration verification 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.

Then when clicking the Show Errors link, a message displays. This message indicates the problem in the config files along with a line number for the config file. However, when looking at the config file in a text editor, the line number does not appear to relate to the problem.

Error: Service has no hosts and/or service_description (config file ‘/usr/local/nagios/etc/services/centos01.cfg, starting on line 32)

Here is the process of Apply Configuration.

  • First, the new config files are temporarily written to disk
  • Next, Nagios verifies the config files are valid or not.
  • Then temporary config files are made permanent
  • Finally, we restart the Nagios service.

If the verification step fails then the temporary files are discarded. In the file, when we check the line number it references, it is not valid as the temporary files no longer exist.


What to do when configuration verification failed in Nagios

We saw the error message in detail. Now let us see how our Support Engineers resolve this error message.

Here are the steps that we follow to force the config files to be written to the disk.

  • First, we open the CCM.
  • Next, we access Tools >> Config File Management
  • After that, we click the Delete Files button. It will display “Successfully deleted all Host/Service Config Files”
  • Then, we click the Write Configs Button. It will show an output containing all the files it creates.
  • We click the Verify Files button
  • As a result, the output should end with the error message.

At this point, we open an SSH session to the Nagios XI server. And open the file in a text editor to investigate the problem.

Generally, the error message explains the problem, in this example, the below error message appears:

Service has no hosts and/or service_description (config file ‘/usr/local/nagios/etc/services/centos01.cfg’, starting on line 32)

Through this, we can determine that it is a config of service for centos01.

For this specific problem, there was no host assigned to the service. After updating the service in CCM, following the Write and Verify steps above, the verification process should succeed.

It is possible that there are multiple config errors for different objects. So we will need to keep repeating the above process until the Verify is successful.

After the Verify is successful:

  • Quick Tools > Apply Configuration
  • Click the Apply Configuration button

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



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.