Migration from CentOS-6 to CentOS-7/RHEL-7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Migration from CentOS-6 to CentOS-7/RHEL-7

Post 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 !!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Migration from CentOS-6 to CentOS-7/RHEL-7

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vinish098
Posts: 136
Joined: Fri Oct 21, 2016 6:30 am

Re: Migration from CentOS-6 to CentOS-7/RHEL-7

Post 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.
kyang

Re: Migration from CentOS-6 to CentOS-7/RHEL-7

Post 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
Locked