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.
General Nagios XI Export/Import Question
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: General Nagios XI Export/Import Question
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
http://library.nagios.com/library/produ ... -nagios-xi
Re: General Nagios XI Export/Import Question
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?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: General Nagios XI Export/Import Question
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: General Nagios XI Export/Import Question
I like this idea! Thank you! Down the rabbit hole I go!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: General Nagios XI Export/Import Question
Yep, Spenser's idea is better if you need to change the names of items...