Page 1 of 1
Migration from CentOS-6 to CentOS-7/RHEL-7
Posted: Fri Mar 23, 2018 6:43 am
by vinish098
Hi Team,
I was running a older version of Nagios, i,e Nagios 2014 on CentOS-6.
Recently, I upgraded the NagiosXI-2014 to NagiosXI-5.4.x.
Now I need to migrate it to CentOS-7/RHEL-7
I am planning to follow below approach.
1. Take a backup from already running Nagios.
2. Install CentOS-7 in a fresh system and latest version of NagiosXI on top of that and restore the latest backup.
Correct me, If I am wrong.
"Also we will prefer the new installed server with separate mount points for complete nagios data and logs."
Can you pls share the required mount point as well?
Thanks !!
Re: Migration from CentOS-6 to CentOS-7/RHEL-7
Posted: Fri Mar 23, 2018 2:22 pm
by npolovenko
Hello,
@vinish098.
Your steps are almost right, except that on a new server you need to install exactly the same version of XI as you had at a time of the backup, which is 5.4.x, right? You may upgrade the old XI to the latest version 5.4.13, then make a backup, and restore it on the 5.4.13 version.
As far as having log files on a separate mount point, you can do that with the use of Symbolic Links.
For the Nagios data offloading please refer to this tutorial:
https://assets.nagios.com/downloads/nag ... Server.pdf
Re: Migration from CentOS-6 to CentOS-7/RHEL-7
Posted: Sat Mar 24, 2018 12:14 pm
by vinish098
Thanks for the reply.
1)
Nagios XI versions before 5.x used a PostgreSQL database for storing the Nagios XI. Upgrading a previous version of Nagios XI will continue to use the PostgreSQL database. (Same happened in my case as I was using XI-2014 and upgraded to XI-5.4.13 and I have backup of upgraded XI)
Fresh installations of Nagios XI will no longer use PostgreSQL. So, Can I restore the backup of upgraded XI ?
2)
I don't want to offload the DB, what I want is just a separate mount point for nagios data in same server. So Pls tell me the those directories. As per my knowledge it is "/usr/local/nagios/" and "/usr/local/nagiosxi/".
I am planning to make symbolic link of both above mentioned directories in a separate LV.
Re: Migration from CentOS-6 to CentOS-7/RHEL-7
Posted: Mon Mar 26, 2018 1:13 pm
by kyang
Hello,
1.
If you are looking to convert PostgreSQL to MySQL, we have a kb article on doing that.
https://support.nagios.com/kb/article.php?id=560
Otherwise, yes the older installation will continue using the Postgres db if you restore the backup into the upgraded XI.
2.
I would not know specifically on what this will cause?
I only know of moving /var/log to a new mount.
https://support.nagios.com/kb/article.php?id=473