Hi Ladies and Gents
OK so I'd like to Transfer all config files files from an on old to new install of Nagios. Before asking if it can be done or not there are a few things i should explain.
We have 2 Live environments for Nagios
Nagios 1 is 5 years old and has Unlimited Licence.
Nagios 2 is 6 months old and has a 1000 node licence.
Nagios 1 runs an old postgresql DB backend and a Mod Gearman setup
Nagios 2 is MySQL without Gearman.
Basically I have offloaded over 7000 service checks from the old to the new Nagios, our old Nagios no longer needs Mod Gearman and needs a DB upgrade so to save the headache of removing everything my question is this. Is it possible to take a config backup including contacts, plugin's, commands, config, and everything from our old Nagios and drop it a new fresh Nagios install on the same DB type as our existing new one?
I feel it would be a lot faster than building it from the ground up which is my other option...
Nagios Config Transfer
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios Config Transfer
Hello @danniiffxi,
You'll want to migrate the postgres database to mysql before migrating to the new server. The recommended process would be as follows:
1. Backup Nagios 1 and if you're running a VM take a snapshot.
See: Backing Up and Restoring Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
2. Turn off ModGearman. Go to /usr/local/nagios/etc and delete or comment out the following line:
3. Upgrade the Nagios 1 server to the latest version.
See: Nagios XI Upgrade Instructions
https://assets.nagios.com/downloads/nag ... ctions.pdf
4. Migrate the database. Let us know if you have any issues.
See: Converting PostgreSQL to MySQL for Nagios
https://support.nagios.com/kb/article/c ... i-560.html
5. Backup and migrate Nagios 1 to the new server
Let me know if you have any issues or questions.
You'll want to migrate the postgres database to mysql before migrating to the new server. The recommended process would be as follows:
1. Backup Nagios 1 and if you're running a VM take a snapshot.
See: Backing Up and Restoring Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
2. Turn off ModGearman. Go to /usr/local/nagios/etc and delete or comment out the following line:
Code: Select all
#broker_module=/usr/lib/mod_gearman2/mod_gearman2.o config=/etc/mod_gearman2/module.conf eventhandler=no
See: Nagios XI Upgrade Instructions
https://assets.nagios.com/downloads/nag ... ctions.pdf
4. Migrate the database. Let us know if you have any issues.
See: Converting PostgreSQL to MySQL for Nagios
https://support.nagios.com/kb/article/c ... i-560.html
5. Backup and migrate Nagios 1 to the new server
Let me know if you have any issues or 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios Config Transfer
Hi [user]@danniiffxi[/user],
I just updated the configuration line in #2 - make sure you comment or remove the modgearman definition. Apologies for any confusion. Thanks.
I just updated the configuration line in #2 - make sure you comment or remove the modgearman definition. Apologies for any confusion. Thanks.
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!
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: Nagios Config Transfer
Thank you benjaminsmith
I will take a snapshot of the our Nagios VM before I make this change. I will keep you posted.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios Config Transfer
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!