{"id":6166,"date":"2021-02-23T16:04:13","date_gmt":"2021-02-23T10:34:13","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6166"},"modified":"2024-12-17T12:18:08","modified_gmt":"2024-12-17T06:48:08","slug":"nagios-migration-new-linux-server","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/","title":{"rendered":"Nagios Migration to new Linux Server"},"content":{"rendered":"\n<p>Let&#8217;s have a peek at the topic of how to migrate the Nagios core from one Linux server to another, the new Linux server that involves transferring the existing data, services, email alert script, defined hosts and the pnp4nagios data.<\/p>\n\n\n\n<p>From this blog, you will get an apparent view regarding migrating the Nagios to a new Linux server as it is part of our\u00a0<a href=\"https:\/\/www.skynats.com\/linux-server-management\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#0174a5\" class=\"has-inline-color\">server management plan<\/span><\/a>. <\/p>\n\n\n\n<p>Step 1: Build the NEW server<\/p>\n\n\n\n<p>First, you need to install the CentOS Linux on the new server and then configure it.<\/p>\n\n\n\n<p>Step 2: Install Nagios<\/p>\n\n\n\n<p>Once you are done with the Linux installation, you need to install the Nagios core 3.5.1 in the new server with required configuration.<\/p>\n\n\n\n<p>Once you are done with the Nagios setup, ensure that the dameons are running and able to open it in the web browser.<\/p>\n\n\n\n<p>Step 3: Transfer configuration files.<\/p>\n\n\n\n<p>For example, the new server hostname\/IPAddress is testserver\/192.168.1.10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@server.local ~]# scp \/usr\/local\/nagios\/etc\/*.cfg testserver:\/usr\/local\/nagios\/etc\/\n&#91;root@server.local ~]# scp \/usr\/local\/nagios\/etc\/objects\/*.cfg testserver:\/usr\/local\/nagios\/etc\/objects\/\n&#91;root@server.local ~]# scp \/etc\/httpd\/conf.d\/nagios.conf testserver:\/etc\/httpd\/conf.d\/\n<\/code><\/pre>\n\n\n\n<p>Step 4: check the Nagios configuration.<\/p>\n\n\n\n<p>Check and ensure that the migrated Nagios server is working well by running the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@testserver ~]# \/usr\/local\/nagios\/bin\/nagios -v \/usr\/local\/nagios\/etc\/nagios.cfg<\/code><\/pre>\n\n\n\n<p>If you get total warning is 0 and total error is 0 that indicates migration is working fine.<\/p>\n\n\n\n<p>Total Warnings: 0<\/p>\n\n\n\n<p>Total Errors: 0<\/p>\n\n\n\n<p>Step 5: Pnp4nagios migration<\/p>\n\n\n\n<p>The PNP4Nagios is an external program. Usually, the Nagios pass the data to the external program to store the data for later analysis purpose.<\/p>\n\n\n\n<p>Later, Will change the IP address configuration of both data servers.&nbsp;<\/p>\n\n\n\n<p>We replace the same address of the old Nagios server and vice versa for the newly installed Nagios Linux server.<\/p>\n\n\n\n<p>Then finally, reboot both machines and check whether the new Nagios server is working fine.&nbsp;<\/p>\n\n\n\n<p>Conclusion&nbsp;<\/p>\n\n\n\n<p>This is blog will help you to migrate the Nagios to the new Linux server. If you need any assistance to migrate the Nagios contact our <a href=\"https:\/\/www.skynats.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#016f9e\" class=\"has-inline-color\">technical team support<\/span><\/a>.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s have a peek at the topic of how to migrate the Nagios core from one Linux server to another, the new Linux server that involves transferring the existing data, services, email alert script, defined hosts and the pnp4nagios data. From this blog, you will get an apparent view regarding migrating the Nagios to a [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,239,68,258],"tags":[574,264],"class_list":["post-6166","post","type-post","status-publish","format-standard","hentry","category-blog","category-linux","category-server-management","category-unix","tag-migrating-nagios-xi","tag-nagios-migration"],"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>Nagios Migration to New Linux Server | server management<\/title>\n<meta name=\"description\" content=\"Let&#039;s have a peek at the topic of how to migrate the Nagios core from one Linux server to another, the new Linux server that involves\" \/>\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\/nagios-migration-new-linux-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nagios Migration to new Linux Server\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s have a peek at the topic of how to migrate the Nagios core from one Linux server to another, the new Linux server that involves\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-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-02-23T10:34:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-17T06:48:08+00:00\" \/>\n<meta name=\"author\" content=\"Pooja V\" \/>\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=\"Pooja V\" \/>\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\\\/nagios-migration-new-linux-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nagios-migration-new-linux-server\\\/\"},\"author\":{\"name\":\"Pooja V\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#\\\/schema\\\/person\\\/030d5856dd5166055eecc07218d2455e\"},\"headline\":\"Nagios Migration to new Linux Server\",\"datePublished\":\"2021-02-23T10:34:13+00:00\",\"dateModified\":\"2024-12-17T06:48:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nagios-migration-new-linux-server\\\/\"},\"wordCount\":306,\"publisher\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#organization\"},\"keywords\":[\"migrating nagios XI\",\"Nagios migration\"],\"articleSection\":[\"Blog\",\"Linux\",\"server management\",\"Unix\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nagios-migration-new-linux-server\\\/\",\"url\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nagios-migration-new-linux-server\\\/\",\"name\":\"Nagios Migration to New Linux Server | server management\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-02-23T10:34:13+00:00\",\"dateModified\":\"2024-12-17T06:48:08+00:00\",\"description\":\"Let's have a peek at the topic of how to migrate the Nagios core from one Linux server to another, the new Linux server that involves\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nagios-migration-new-linux-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nagios-migration-new-linux-server\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/nagios-migration-new-linux-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.skynats.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Nagios Migration to new Linux 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\\\/030d5856dd5166055eecc07218d2455e\",\"name\":\"Pooja V\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g\",\"caption\":\"Pooja V\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Nagios Migration to New Linux Server | server management","description":"Let's have a peek at the topic of how to migrate the Nagios core from one Linux server to another, the new Linux server that involves","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\/nagios-migration-new-linux-server\/","og_locale":"en_US","og_type":"article","og_title":"Nagios Migration to new Linux Server","og_description":"Let's have a peek at the topic of how to migrate the Nagios core from one Linux server to another, the new Linux server that involves","og_url":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/","og_site_name":"Server Management Services | Cloud Management | Skynats","article_publisher":"https:\/\/www.facebook.com\/skynats","article_published_time":"2021-02-23T10:34:13+00:00","article_modified_time":"2024-12-17T06:48:08+00:00","author":"Pooja V","twitter_card":"summary_large_image","twitter_creator":"@skynatstech","twitter_site":"@skynatstech","twitter_misc":{"Written by":"Pooja V","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/#article","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/"},"author":{"name":"Pooja V","@id":"https:\/\/www.skynats.com\/blog\/#\/schema\/person\/030d5856dd5166055eecc07218d2455e"},"headline":"Nagios Migration to new Linux Server","datePublished":"2021-02-23T10:34:13+00:00","dateModified":"2024-12-17T06:48:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/"},"wordCount":306,"publisher":{"@id":"https:\/\/www.skynats.com\/blog\/#organization"},"keywords":["migrating nagios XI","Nagios migration"],"articleSection":["Blog","Linux","server management","Unix"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/","url":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/","name":"Nagios Migration to New Linux Server | server management","isPartOf":{"@id":"https:\/\/www.skynats.com\/blog\/#website"},"datePublished":"2021-02-23T10:34:13+00:00","dateModified":"2024-12-17T06:48:08+00:00","description":"Let's have a peek at the topic of how to migrate the Nagios core from one Linux server to another, the new Linux server that involves","breadcrumb":{"@id":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.skynats.com\/blog\/nagios-migration-new-linux-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.skynats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Nagios Migration to new Linux 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\/030d5856dd5166055eecc07218d2455e","name":"Pooja V","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/acf2642637f84bdab7ffece47787a6a4ee655dab6404beac2a1a33db563041c4?s=96&d=mm&r=g","caption":"Pooja V"}}]}},"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6166","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=6166"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6166\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}