Page 1 of 1

upgrade nagios Vm from CentOS 6 to 7

Posted: Mon Apr 13, 2020 2:16 pm
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!

Re: upgrade nagios Vm from CentOS 6 to 7

Posted: Mon Apr 13, 2020 3:55 pm
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

Re: upgrade nagios Vm from CentOS 6 to 7

Posted: Tue Apr 14, 2020 3:40 pm
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?

Re: upgrade nagios Vm from CentOS 6 to 7

Posted: Wed Apr 15, 2020 11:25 am
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.