{"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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">Step 1: Build the NEW server<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, you need to install the CentOS Linux on the new server and then configure it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2: Install Nagios<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">Step 3: Transfer configuration files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">Step 4: check the Nagios configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">If you get total warning is 0 and total error is 0 that indicates migration is working fine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Total Warnings: 0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Total Errors: 0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 5: Pnp4nagios migration<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">Later, Will change the IP address configuration of both data servers.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">Then finally, reboot both machines and check whether the new Nagios server is working fine.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Conclusion&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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"],"_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}]}}