Page 1 of 1
upgrade plan to centos 7
Posted: Sun Oct 18, 2020 11:05 am
by steph007
Hi,
I've been told that centos 6 will not be support anymore very soon.
Since my NagiosXI is on centos 6, what would be the upgrade path to centos 7?
Re: upgrade plan to centos 7
Posted: Mon Oct 19, 2020 2:41 pm
by benjaminsmith
Hi,
That is correct, Cent 6 will be end-of-life at the end of November. A migration in XI is easier that it sounds, the backup and restore script will move everything over. You just need to set up a fresh server or VM with Cent 7 and then run the restore script.
If you need to change your IP address and that is covered in the guide below as well.
Backing Up And Restoring Your Nagios XI System
You get 3 activations with your Nagios XI license, production, test, and backup, so you can set this up on the side and perform the switch over when you're ready.
https://support.nagios.com/kb/article.php?id=145
Let us know if you have more questions or need further assistance.
Benjamin
Re: upgrade plan to centos 7
Posted: Tue Oct 20, 2020 8:17 am
by steph007
That's what I tought, but it's not that easy. In place upgrade would have been more easier.
I need to go through the internal process for having a new VM
I need to go to our network provider to have a temporary IP
I need to not only transfert nagiosxi but the multiple scripts I have wrote also
Question
Centos7 image it's with mariadb. With my actual system centos6 it's mysql. When I will restore the backup of nagiosxi on my new image, what will hapen with the db?
Re: upgrade plan to centos 7
Posted: Tue Oct 20, 2020 4:22 pm
by benjaminsmith
HI,
That's what I tought, but it's not that easy. In place upgrade would have been more easier.
Currently, we do not QA this type of upgrade. It probably will work but it will also take your monitoring serer down for while it downloads and re-compiles.
Centos7 image it's with mariadb. With my actual system centos6 it's mysql. When I will restore the backup of nagiosxi on my new image, what will hapen with the db?
The restore script will take care of that. They are essentially the same programs. One thing to mention is that you'll need to migrate between the same versions of Nagios XI. I would recommend taking the backup, restoring on this version of the new system, and then upgrading.
We have archived versions available for download on the following page.
https://assets.nagios.com/downloads/nag ... rsions.php
Let us know if you have more questions or need assistance.
benjamin
Re: upgrade plan to centos 7
Posted: Wed Oct 21, 2020 3:05 pm
by steph007
Thanks, I have others questions
Ok, "script will take care of that" but what would be the final database once restore Nagios XI on the new centos 7? MySQL or MariaDB?
Once on the new server, does it's possible to change the IP and the hostname to match we we have before?
Re: upgrade plan to centos 7
Posted: Wed Oct 21, 2020 4:07 pm
by benjaminsmith
Hi,
For new Cent 7, it's going to install MariaDB. For instructions on changing the IP address, please refer to page 13 of the following guide.
Backing Up And Restoring Your Nagios XI System
Let us know if you any other questions.
Re: upgrade plan to centos 7
Posted: Thu Oct 29, 2020 1:13 pm
by steph007
Hi,
During the configuration and the restore on the new NagiosXI system, how can avoid the new system to monitor Hosts and Services? Because on the new system I'm using a temporary IP adresse (once configuration over, I will used the adresse of the actual system), it will not be autorised to contact NRPE agent (because of FW of course) and I will have a bunch of alert that could potentionnaly triger paging/ticketing to support. I want avoid such scenario.
Re: upgrade plan to centos 7
Posted: Fri Oct 30, 2020 10:40 am
by benjaminsmith
Hi,
My recommendation would be to disable checks in the main Nagios Core configuration file. The following settings in
/usr/local/nagios/etc/nagios.cfg will turn off all processing of checks results both active and passive.
Code: Select all
execute_service_checks=0
execute_host_checks=0
accept_passive_service_checks=0
accept_passive_host_checks=0
See:
https://assets.nagios.com/downloads/nag ... gmain.html
You can stop the Nagios service after the migration and edit those settings or unpack the archive and edit this file before running the restore script.
Let me know if that will work for you.
Benjamin
Re: upgrade plan to centos 7
Posted: Tue Nov 03, 2020 4:18 pm
by steph007
Hi,
All went well for my test servers. I will do the real monitoring server in 1-2 weeks. Should be good with what I have in hand to do it without problem.
You can close this ticket, and thanks for you help.
Re: upgrade plan to centos 7
Posted: Tue Nov 03, 2020 4:20 pm
by scottwilkerson
steph007 wrote:Hi,
All went well for my test servers. I will do the real monitoring server in 1-2 weeks. Should be good with what I have in hand to do it without problem.
You can close this ticket, and thanks for you help.
Great!
Locking thread