Page 1 of 1

General Nagios XI Export/Import Question

Posted: Thu Sep 12, 2013 5:15 pm
by unkusr
Hello-

I am in the process of trying to migrate our production environment over to a second site. I'm wondering if I can export my production configuration, modify it to match certain values in our second environment, then import into the second environment. I would mostly need to change host names from local-host5xxx to local-host9xxx. Is this possible, or am I going to have to go the manual route?

Thanks,
unkusr

PS: I'm sorry if this is a newb question.

Re: General Nagios XI Export/Import Question

Posted: Thu Sep 12, 2013 8:33 pm
by scottwilkerson
If the second XI server is new, you can take a backup of the current install and restore on the remote site
http://library.nagios.com/library/produ ... -nagios-xi

Re: General Nagios XI Export/Import Question

Posted: Fri Sep 20, 2013 11:14 am
by unkusr
Thank you for your reply, Scott. I don't think I worded my question properly. Let me try something else. With the backup taken, is it possible to edit the back up config to have it match a new set of slightly different hostnames? Or would any editing muck up the backup?

Re: General Nagios XI Export/Import Question

Posted: Fri Sep 20, 2013 11:58 am
by sreinhardt
You wouldn't be able to take a full backup, simply because that includes performance data, mysql databases and all sorts of that. However you could take one of the config snapshots, modify as you need, and then put in the import directory of the new server. Use the XI interface to import the modified configs on the new server, and it should begin working provided all of your plugins are there and the rest of any needed setup is complete, such as remote agents. As a note, you may need to import a few times as commands, contacts, templates, groups, hosts, then services, may or may not get imported depending on if they have all dependencies met at that point. Second note, be sure to copy the configs into import and keep a backup separate, as importing may delete them.

Re: General Nagios XI Export/Import Question

Posted: Fri Sep 20, 2013 2:43 pm
by unkusr
I like this idea! Thank you! Down the rabbit hole I go!

Re: General Nagios XI Export/Import Question

Posted: Sat Sep 21, 2013 8:51 am
by scottwilkerson
Yep, Spenser's idea is better if you need to change the names of items...