upgrade nagios Vm from CentOS 6 to 7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
perryell
Posts: 52
Joined: Fri May 06, 2011 10:12 am

upgrade nagios Vm from CentOS 6 to 7

Post by perryell »

Hi there. We have a nagiosXi server on CentOS 6.10/ 5.6.13 version/db pgsql and we want to upgrade the OS
Could be possible to import a PostgreSQL dump from the server on a new VM created from the latest pre-configured virtual machine in Vmware?
Any other good solution to migrate to latest OS?
Thanks!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: upgrade nagios Vm from CentOS 6 to 7

Post by ssax »

No, don't do that, it will not work for you.

The XI backup/restore process makes this pretty easy.

Recommendation:

1. Backup old XI system (just in case)
2. Upgrade old XI system to the latest XI version (NOTE: ONLY BACKUP AND RESTORE TO EXACT SAME XI VERSION)
3. Backup old XI system again (use this backup going forward)
4. Spin up new VM and restore to it.
5. Follow the After the Restore AND Change Operating System Version or Architecture section (aka, run restore_repair script).

See here:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Let us know if you have any questions.



Thank you
perryell
Posts: 52
Joined: Fri May 06, 2011 10:12 am

Re: upgrade nagios Vm from CentOS 6 to 7

Post by perryell »

Thank you for the answer..my question is..a new centos vm from the latest .ova file, will use the new mysql by default, and my system on 6 is using postgreSQL now. Can I still run the simple backup/export/import recommended o do I need a db conversion from one to the other one?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: upgrade nagios Vm from CentOS 6 to 7

Post by ssax »

Before you restore on the new server, you will have to do this:

Code: Select all

yum install postgresql postgresql-libs postgresql-server postgresql-devel
Otherwise, you can do the mysql to postgresql conversion on the old one first (then the above command is not needed) OR you can do the conversion at the end (if you want, it's not a requirement that you convert).

See here for the conversion process:

https://support.nagios.com/kb/article/c ... i-560.html

Let us know if you have any questions.
Locked