Page 1 of 1

Failover Server Best Practices

Posted: Wed Jul 20, 2016 1:26 pm
by bhowardFSU
I am currently migrating from Nagios Core to Nagios XI. We have three Nagios servers: DEV, PRD and a Failover at our Disaster Recovery (DR) site. I would like to know what the best practices are for transferring the entire Nagios configuration from one server to another for several scenarios.

1) How can I most easily setup new hosts/services/contacts/etc in DEV and then transfer the configurations to PRD when I'm satisfied with them?

2) How can I transfer everything from the PRD Nagios server to the DEV server, in case the PRD server fails? In this situation, I would rename/re-IP the DEV server to use the PRD server's identity.

3) How can I transfer everything from the PRD Nagios server to the DR server, in a full-scale disaster? In this situation, I could NOT re-IP the DR server to use the PRD server's identity. I mention this, because I imagine this could impact the transfer method to preserve the identity and Nagios licensing.

If this has already been hashed through many times before, I apologize. I searched through the forums and documentation and didn't find anything.

Thanks, Breeze

Re: Failover Server Best Practices

Posted: Wed Jul 20, 2016 4:42 pm
by tgriep
1) If you want to migrate some of the configs from your DEV server in to your PRD server, you could copy the configuration file over and use the "Import Config Files" feature in the Core Config Manager.
Take a look at this link for more details.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

2 and 3)The easiest way to transfer the configurations / settings from one server to another is to run the backup script on the source server, copy the tar ball file to the destination server ans run the restore script.
The should work for for you if both of the servers are running the same version of Nagios XI.
Take a look at these instructions for running the backup / restore scripts.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Let us know if you have any more questions.

Re: Failover Server Best Practices

Posted: Wed Aug 31, 2016 8:35 am
by bhowardFSU
Sticking with #1 for now, I want to copy over my Nagios XI setup from my DEV host to my PRD host (both running same version of Nagios XI). This guide seems specific to importing from Nagios Core to Nagios XI, not XI to XI: https://assets.nagios.com/downloads/nag ... ios-XI.pdf If I use the document above, will it copy over a) My Users b) Any plugins I added, c) Notification Management Settings? or will it only copy over things from within the CCM (hosts, services, contacts, host/service/contact groups, etc)?

Is there a way to mass export/import users?

Re: Failover Server Best Practices

Posted: Wed Aug 31, 2016 12:08 pm
by tgriep
Using the import tool, will not copy over the user accounts and their settings, only doing the Backup and Restore will they get transferred from one system to another.
That is the only way to migrate the user accounts.
BTW, the import tool will work to import the config files from an XI server to an XI server as the format of the files are the same, it will work for you.

Re: Failover Server Best Practices

Posted: Wed Aug 31, 2016 4:08 pm
by bhowardFSU
Can I use the backup/restore method to copy DEV to PRD? I expect I would need to fix the URL/hostname in the applications, would I need to fix anything else? Would it mess up the license keys?

Re: Failover Server Best Practices

Posted: Wed Aug 31, 2016 4:35 pm
by tgriep
FYI, The restore may over write the existing data so only rely on it to do a full restore and any existing data may be lost.
Changing the program URL should work for XI.
Any other changes to the system that are not part of the backup, would have to be done as well after the install.
The backup and restore is more geared towards restoring a dead server and not as a HA system but since the license activation is tied to the IP address, it may not prompt you on the expiry at the correct date.