Page 1 of 1
Splitting very large XI server to another
Posted: Mon May 04, 2020 12:27 pm
by bpennin
I am splitting the load of an existing Nagios XI server to new XI server. I need a good clean way to transfer Hosts by Host groups to the new server. I do not want to do a backup - restore - delete. I just want to pluck off some easy things and move them. I have seen an example API that pulls things by host group but does not seem to intuitive as how to add the output of the API command back in to the new server. Anyone have scripts/API/etc that has done this before?
Re: Splitting very large XI server to another
Posted: Mon May 04, 2020 2:45 pm
by jbrunkow
Hi
@bpennin,
If you do not want to do a backup and restore, the second best option may be to re-run the Wizards again on the new instance. Would that be a viable option, or is there just too many?
This may be something worth making a feature request for, so that we can include it in future versions of
Nagios. Thanks for your input!
Re: Splitting very large XI server to another
Posted: Mon May 04, 2020 3:12 pm
by bpennin
Thanks for the idea but we have too many servers to manually add them back in. It would be nice to offer an admin task that would be used to package up a host and all the service checks to a tar file for the purpose of moving or removing...
Re: Splitting very large XI server to another
Posted: Tue May 05, 2020 10:09 am
by jbrunkow
I can certainly request for that to be a feature in future releases. There may be other users who would also appreciate being able to migrate an entire host group in bulk.
You could also relegate some of the work to another server using
Mod Gearman. Learn how to set up a
Mod Gearman worker server by following the documentation linked below.
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
Re: Splitting very large XI server to another
Posted: Tue May 05, 2020 12:26 pm
by bpennin
I have already purchased another XI unlimited server and want to split my current server out. Is there any other options?
Re: Splitting very large XI server to another
Posted: Tue May 05, 2020 4:22 pm
by benjaminsmith
Hi
@bpennin,
I would recommend downloading the current configuration snapshot and then importing those files into the new XI instance. The process of importing configuration files is explained in the following guide.
Importing Config Files From Nagios Core Into Nagios XI
Once you get the configuration successfully imported, you can either delete or deactivate the hosts/services from the respective instances.
Let us know if you have any questions about the process.