{"id":6309,"date":"2021-04-07T12:44:00","date_gmt":"2021-04-07T07:14:00","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6309"},"modified":"2022-12-13T12:34:49","modified_gmt":"2022-12-13T07:04:49","slug":"apply-configuration-fails-in-nagios-server","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/","title":{"rendered":"How to Apply Configuration Fails in Nagios Server"},"content":{"rendered":"\n<p> <\/p>\n\n\n\n<p>Before we drive to the solution part, let&#8217;s have a glance at the reason that cause an error.&nbsp;<\/p>\n\n\n\n<p>This 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&nbsp;our <span class=\"has-inline-color has-primary-color\">technical team support<\/span>&nbsp;to be done on your behalf.&nbsp;<\/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>Backend login to the Core Config Manager failed.<\/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>What to do when Apply Configuration fails in Nagios<\/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<\/code><\/pre>\n\n\n\n<p>Output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>URL: 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<pre class=\"wp-block-code\"><code>wget: unable to resolve host address \u201clocalhost\u201d<\/code><\/pre>\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<\/code><\/pre>\n\n\n\n<p><strong>Output.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 xi-c6x-x64\n::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 xi-c6x-x64\nHere you can see no\" localhost\" entries where it has a similar entry but not the \"localhost\" entries at all.\nSo we edit \/etc\/hosts file and ensure the localhost entries in it. For example, we make the below changes in the file.\n127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost xi-c6x-x64\n::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost xi-c6x-x64\n<\/code><\/pre>\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 for the error is the Nagios XI server which is unable to resolve the &#8220;localhost&#8221;.Follow the steps to resolve the error or you can take our <a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#0270a0\" class=\"has-inline-color\">technical team support<\/span><\/a> 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.&nbsp; This 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&nbsp;our technical team support&nbsp;to be done on your behalf.&nbsp; Let&#8217;s have [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[310,311],"class_list":["post-6309","post","type-post","status-publish","format-standard","hentry","category-blog","tag-nagios","tag-nagiosserver"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Apply Configuration Fails in Nagios Server | Skynats<\/title>\n<meta name=\"description\" content=\"While you try to apply the configuration to Nagios core a pop-up error message will be displayed on the screen.monitoring engine configuration\" \/>\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\/\" \/>\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=\"While you try to apply the configuration to Nagios core a pop-up error message will be displayed on the screen.monitoring engine configuration\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/\" \/>\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-07T07:14:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-13T07:04:49+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\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server\\\/\"},\"author\":{\"name\":\"Nabeela\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/2968118a72bea0868796abf1237ab3e0\"},\"headline\":\"How to Apply Configuration Fails in Nagios Server\",\"datePublished\":\"2021-04-07T07:14:00+00:00\",\"dateModified\":\"2022-12-13T07:04:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server\\\/\"},\"wordCount\":267,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"nagios\",\"nagiosserver\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server\\\/\",\"name\":\"How to Apply Configuration Fails in Nagios Server | Skynats\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-04-07T07:14:00+00:00\",\"dateModified\":\"2022-12-13T07:04:49+00:00\",\"description\":\"While you try to apply the configuration to Nagios core a pop-up error message will be displayed on the screen.monitoring engine configuration\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/apply-configuration-fails-in-nagios-server\\\/#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":"How to Apply Configuration Fails in Nagios Server | Skynats","description":"While you try to apply the configuration to Nagios core a pop-up error message will be displayed on the screen.monitoring engine configuration","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\/","og_locale":"en_US","og_type":"article","og_title":"How to Apply Configuration Fails in Nagios Server","og_description":"While you try to apply the configuration to Nagios core a pop-up error message will be displayed on the screen.monitoring engine configuration","og_url":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2021-04-07T07:14:00+00:00","article_modified_time":"2022-12-13T07:04:49+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\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/"},"author":{"name":"Nabeela","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/2968118a72bea0868796abf1237ab3e0"},"headline":"How to Apply Configuration Fails in Nagios Server","datePublished":"2021-04-07T07:14:00+00:00","dateModified":"2022-12-13T07:04:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/"},"wordCount":267,"commentCount":0,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["nagios","nagiosserver"],"articleSection":["Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/","url":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/","name":"How to Apply Configuration Fails in Nagios Server | Skynats","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2021-04-07T07:14:00+00:00","dateModified":"2022-12-13T07:04:49+00:00","description":"While you try to apply the configuration to Nagios core a pop-up error message will be displayed on the screen.monitoring engine configuration","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/apply-configuration-fails-in-nagios-server\/#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\/6309","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=6309"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6309\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}