{"id":6323,"date":"2021-04-16T13:04:47","date_gmt":"2021-04-16T07:34:47","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6323"},"modified":"2024-12-17T12:18:47","modified_gmt":"2024-12-17T06:48:47","slug":"apply-configuration-fails-in-nagios-server-2","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/","title":{"rendered":"How to Apply Configuration Fails in Nagios Server"},"content":{"rendered":"\n<p>Before we drive to the solution part, let&#8217;s have a glance at the reason that cause an error.\u00a0This Blog will drive you to how to apply configuration fails in the <a href=\"https:\/\/www.nagios.org\/\">Nagios<\/a> server. If you need any assistance to fix the error, you can take\u00a0our technical team support\u00a0to be done on your behalf.\u00a0<\/p>\n\n\n\n<p>Let&#8217;s have a look at the cause of the error.<\/p>\n\n\n\n<p>An error message will be displayed on the screen when apply configuration fails.<\/p>\n\n\n\n<p><strong>Backend login to the Core Config Manager failed.<\/strong><\/p>\n\n\n\n<p>While you try to apply the configuration to Nagios core a pop-up error message will be displayed on the screen.<\/p>\n\n\n\n<p>Monitoring engine configuration files have been rolled back to their last known good checkpoint.<\/p>\n\n\n\n<p>The main reason could be the Nagios XI server which is not able to resolve the &#8220;localhost&#8221;.<\/p>\n\n\n\n<p><strong>What to do when Apply Configuration fails in Nagios<\/strong><\/p>\n\n\n\n<p>For this, you need to open an SSH session to the Nagios XI server. then execute the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>su nagios\ncd \/usr\/local\/nagiosxi\/scripts\n.\/reconfigure_nagios.sh\n Output.\nURL: http:\/\/localhost\/nagiosxi\/includes\/components\/ccm\/<\/code><\/pre>\n\n\n\n<p>CMDLINE<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/wget --save-cookies nagiosql.cookies --keep-session-cookies http:\/\/localhost\/nagiosxi\/includes\/components\/ccm\/ --no-check-certificate --post-data\n'submit=Login&amp;hidelog=true&amp;loginSubmitted=true&amp;username=nagiosxi&amp;password=n@gweb' -O nagiosql.login--2016-08-03 10:10:46-- http:\/\/localhost\/nagiosxi\/includes\/components\/ccm\/<\/code><\/pre>\n\n\n\n<p> Resolving localhost&#8230; failed: Name or service not known.<\/p>\n\n\n\n<p>wget: unable to resolve host address \u201clocalhost\u201d<\/p>\n\n\n\n<p>NAGIOSQL LOGIN FAILED!<\/p>\n\n\n\n<p>Run the command to see the contents of the \/etc\/hosts file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/hosts\nOutput.<\/code><\/pre>\n\n\n\n<p>127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 xi-c6x-x64<\/p>\n\n\n\n<p>::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 xi-c6x-x64<\/p>\n\n\n\n<p>Here you can see no&#8221; localhost&#8221; entries where it has a similar entry but not the &#8220;localhost&#8221; entries at all.<\/p>\n\n\n\n<p>So we edit \/etc\/hosts file and ensure the localhost entries in it. For example, we make the below changes in the file.<\/p>\n\n\n\n<p>127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost xi-c6x-x64<\/p>\n\n\n\n<p>::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost xi-c6x-x64<\/p>\n\n\n\n<p>Make the necessary changes and try &#8220;Apply configuration&#8221; from Core Configuration Manager, most probably the problem must be resolved.<\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>In brief, the main cause of the error is that the Nagios XI server is unable to resolve &#8220;localhost.&#8221; This issue is often linked to configuration fails in Nagios server. Follow the steps provided to resolve the error, or contact our <a href=\"https:\/\/www.skynats.com\/blog\/\">technical team<\/a> for support to fix the problem on your behalf.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before we drive to the solution part, let&#8217;s have a glance at the reason that cause an error.\u00a0This Blog will drive you to how to apply configuration fails in the Nagios server. If you need any assistance to fix the error, you can take\u00a0our technical team support\u00a0to be done on your behalf.\u00a0 Let&#8217;s have a [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,239,250,257,309,68],"tags":[293,241,46,310,292],"class_list":["post-6323","post","type-post","status-publish","format-standard","hentry","category-blog","category-linux","category-mssql-server","category-mysql","category-nagios","category-server-management","tag-cloudmanagementservices","tag-linux","tag-mysql-server","tag-nagios","tag-servermanagementservices"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Configuration Fails in Nagios Server: How to Apply Fixes<\/title>\n<meta name=\"description\" content=\"Learn how to fix configuration fails in Nagios server with easy steps. Solve issues quickly and optimize your server setup today!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Apply Configuration Fails in Nagios Server\" \/>\n<meta property=\"og:description\" content=\"Learn how to fix configuration fails in Nagios server with easy steps. Solve issues quickly and optimize your server setup today!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Management Services | Cloud Management | Skynats\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/skynats\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-16T07:34:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-17T06:48:47+00:00\" \/>\n<meta name=\"author\" content=\"Nabeela\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:site\" content=\"@skynatstech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nabeela\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server-2\\\/\"},\"author\":{\"name\":\"Nabeela\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/2968118a72bea0868796abf1237ab3e0\"},\"headline\":\"How to Apply Configuration Fails in Nagios Server\",\"datePublished\":\"2021-04-16T07:34:47+00:00\",\"dateModified\":\"2024-12-17T06:48:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server-2\\\/\"},\"wordCount\":359,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"cloudmanagementservices\",\"Linux\",\"mysql server\",\"nagios\",\"servermanagementservices\"],\"articleSection\":[\"Blog\",\"Linux\",\"MSSQL server\",\"MySQL\",\"Nagios\",\"server management\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server-2\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server-2\\\/\",\"name\":\"Configuration Fails in Nagios Server: How to Apply Fixes\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-04-16T07:34:47+00:00\",\"dateModified\":\"2024-12-17T06:48:47+00:00\",\"description\":\"Learn how to fix configuration fails in Nagios server with easy steps. Solve issues quickly and optimize your server setup today!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Apply Configuration Fails in Nagios Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"name\":\"Server Management Services | Cloud Management | Skynats\",\"description\":\"Server Management and Cloud Management\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\",\"name\":\"Skynats Technologies\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"contentUrl\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/Sknats-Logo-New-whole.png\",\"width\":989,\"height\":367,\"caption\":\"Skynats Technologies\"},\"image\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/skynats\",\"https:\\\/\\\/x.com\\\/skynatstech\",\"https:\\\/\\\/www.instagram.com\\\/skynatstech\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/skynats-technologies\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCvTAjrFJ4_E2MJKwlDHomlg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/2968118a72bea0868796abf1237ab3e0\",\"name\":\"Nabeela\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g\",\"caption\":\"Nabeela\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Configuration Fails in Nagios Server: How to Apply Fixes","description":"Learn how to fix configuration fails in Nagios server with easy steps. Solve issues quickly and optimize your server setup today!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/","og_locale":"en_US","og_type":"article","og_title":"How to Apply Configuration Fails in Nagios Server","og_description":"Learn how to fix configuration fails in Nagios server with easy steps. Solve issues quickly and optimize your server setup today!","og_url":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2021-04-16T07:34:47+00:00","article_modified_time":"2024-12-17T06:48:47+00:00","author":"Nabeela","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Nabeela","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/"},"author":{"name":"Nabeela","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/2968118a72bea0868796abf1237ab3e0"},"headline":"How to Apply Configuration Fails in Nagios Server","datePublished":"2021-04-16T07:34:47+00:00","dateModified":"2024-12-17T06:48:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/"},"wordCount":359,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["cloudmanagementservices","Linux","mysql server","nagios","servermanagementservices"],"articleSection":["Blog","Linux","MSSQL server","MySQL","Nagios","server management"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/","url":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/","name":"Configuration Fails in Nagios Server: How to Apply Fixes","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2021-04-16T07:34:47+00:00","dateModified":"2024-12-17T06:48:47+00:00","description":"Learn how to fix configuration fails in Nagios server with easy steps. Solve issues quickly and optimize your server setup today!","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Apply Configuration Fails in Nagios Server"}]},{"@type":"WebSite","@id":"https:\/\/www.skynats.com\/blog\/#website","url":"https:\/\/www.skynats.com\/blog\/","name":"Server Management Services | Cloud Management | Skynats","description":"Server Management and Cloud Management","publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.skynats.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.skynats.com\/blog\/#organization","name":"Skynats Technologies","url":"https:\/\/www.skynats.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","contentUrl":"https:\/\/www.skynats.com\/blog\/wp-content\/uploads\/2021\/08\/Sknats-Logo-New-whole.png","width":989,"height":367,"caption":"Skynats Technologies"},"image":{"@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/skynats","https:\/\/x.com\/skynatstech","https:\/\/www.instagram.com\/skynatstech\/","https:\/\/www.linkedin.com\/company\/skynats-technologies","https:\/\/www.youtube.com\/channel\/UCvTAjrFJ4_E2MJKwlDHomlg"]},{"@type":"Person","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/2968118a72bea0868796abf1237ab3e0","name":"Nabeela","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/12a999d0e3cd16cf2383c5551b39d00d6ddc2d035a2581ce5d85fce0762d0372?s=96&d=mm&r=g","caption":"Nabeela"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=6323"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6323\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}