Migration tool?
Posted: Sun Oct 09, 2016 10:42 pm
Does Nagios have any tools or scripts to migrate selected servers with its services and dependencies like contacts etc from one server to another?
Thanks
Thanks
Support for Nagios products and services
https://support.nagios.com/forum/
I am trying to move about 300 hosts out of 1 instance to another in small batches.lmiltchev wrote:Are you looking for *something different* than "backing up and restoring XI" as described in our the document below?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Can you elaborate?
Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.shCode: Select all
mkdir /usr/local/nagios/etc/cfgprepI am aware of this method. Thanks anyway.lmiltchev wrote:If you knew you didn't have any config errors, you could simply place your configs in the "/usr/local/nagios/etc/import" directory, and run reconfigure_nagios.sh:Note: This *may* fail if you hit some config errors. For example, it is possible that on the "new" server you haven't defined some of the objects used in the configs that you are importing, i.e hostgroups, contacts, contactgroups, etc.Code: Select all
cd /usr/local/nagiosxi/scripts ./reconfigure_nagios.sh
A better way would be to create a directory under "/usr/local/nagios/etc"copy the configs in it, and import them from the Nagios XI web UI (CCM->Tools->Import Config Files). This way you could verify configuration prior to applying it.Code: Select all
mkdir /usr/local/nagios/etc/cfgprep
Run the " Config File Management" tool (called "Write Config Files" tool in XI versions older than 5.3.0) after importing each batch to make sure you don't have any config errors. If they are no errors, apply configuration. If you see errors, fix them in the CCM, rerun the tool, and apply configuration if no errors are present.