Page 1 of 1
Moving from CentOS 6 to CentOS 7
Posted: Fri Jun 14, 2019 9:37 am
by danniiffxi
Hi Forum
I have been tasked with upgrading the OS back-end of our Nagios XI installations. We currently run two production environments of XI both running 5.6.2..
One instance will be fine, but I have an issues with the other.
Our original Nagios XI was built on a PostgreSQL DB and uses Gearman setup. I basically want to bin that system and move to the newer SQL back-end and get rid of Gearman as our new instance of Nagios has taken a lot of pressure off of the old one.
Is it possible to take a config backup from the PostgreSQL install and restore that to the a newer back-end? I would obviously take all Gearman content out first. Or am I looking a rebuild form the ground up?
Re: Moving from CentOS 6 to CentOS 7
Posted: Fri Jun 14, 2019 11:11 am
by benjaminsmith
Hi
@danniiffxi,
If you
backup and restore to the new server, the migration scripts will carry over the PostgresSQL database as well. We have instructions for migrating your database from Postgres to MySQl.
Converting PostgreSQL to MySQL for Nagios XI
To remove the Gearman step, you'll need to remove the setting from nagios configuration file, and disable the workers from running.
Let me know if you have any additional questions.
Re: Moving from CentOS 6 to CentOS 7
Posted: Mon Jun 17, 2019 6:45 am
by danniiffxi
Cool, makes sense thank you.
One more question if I may. In my other build of Nagios which should be a straight migration as the only thing changing in the underlying OS. When I transfer the backup and restore, will that backup also contain the custom service checks I have added from Nagios Exchange, such as the Cisco OSPF checks? Or will i need to manually configure these?
Re: Moving from CentOS 6 to CentOS 7
Posted: Mon Jun 17, 2019 8:22 am
by scottwilkerson
danniiffxi wrote:Cool, makes sense thank you.
One more question if I may. In my other build of Nagios which should be a straight migration as the only thing changing in the underlying OS. When I transfer the backup and restore, will that backup also contain the custom service checks I have added from Nagios Exchange, such as the Cisco OSPF checks? Or will i need to manually configure these?
It will contain the commands, but not the plugins, you will need to move them manually.
the reason for this is that when you switch operating systems the plugins are not transferred because many are compiled and we need to make sure we don't move compiled plugins that link to incorrect libraries and library locations.
Additionally, if your custom plugins require additional packages installed from repositories you will need to install them as well.
Re: Moving from CentOS 6 to CentOS 7
Posted: Tue Jun 18, 2019 3:16 am
by danniiffxi
Perfect thank you. You have answered my question, please feel free to lock this one

Re: Moving from CentOS 6 to CentOS 7
Posted: Tue Jun 18, 2019 6:33 am
by scottwilkerson
danniiffxi wrote:Perfect thank you. You have answered my question, please feel free to lock this one

Great!
Locking