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
Migration tool?
Migration tool?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Migration tool?
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?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Can you elaborate?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Migration tool?
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?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Migration tool?
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.
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.
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.
Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.shA better way would be to create a directory under "/usr/local/nagios/etc"
Code: Select all
mkdir /usr/local/nagios/etc/cfgprepRun 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Migration tool?
I 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.
Please close this thread.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Migration tool?
Glad to hear you have a method. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!