Moving from CentOS 6 to CentOS 7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
danniiffxi
Posts: 121
Joined: Tue Jan 30, 2018 3:29 am
Location: UK

Moving from CentOS 6 to CentOS 7

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Moving from CentOS 6 to CentOS 7

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
danniiffxi
Posts: 121
Joined: Tue Jan 30, 2018 3:29 am
Location: UK

Re: Moving from CentOS 6 to CentOS 7

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Moving from CentOS 6 to CentOS 7

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
danniiffxi
Posts: 121
Joined: Tue Jan 30, 2018 3:29 am
Location: UK

Re: Moving from CentOS 6 to CentOS 7

Post by danniiffxi »

Perfect thank you. You have answered my question, please feel free to lock this one :)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Moving from CentOS 6 to CentOS 7

Post by scottwilkerson »

danniiffxi wrote:Perfect thank you. You have answered my question, please feel free to lock this one :)
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked