Hi,
I'm looking for a way of exporting/importing the configuration from a Nagiosxi to another Nagiosxi.
So far I've found the docs explaining how to import from Nagios Core to Nagiosxi (using preparation prior to the actual import).
For nagiosxi to Nagiosxi would it be different, maybe a simpler and straightforwards way? Like just copying the cfg files and applying "Import" in the "Import Config Files" wizard?
Thanks,
Sebastian
duplicating config from xi to another xi
-
- Posts: 32
- Joined: Tue Aug 04, 2020 9:37 am
- Location: Bucharest
-
- Posts: 1253
- Joined: Tue Mar 02, 2021 11:15 am
Re: duplicating config from xi to another xi
Hi,
Please follow the import procedure described in the guide below:
https://assets.nagios.com/downloads/nag ... ios-xi.pdf
Since you going from one xi server to another, the prep tool is not required but, remember that you need to import the configs in order. The order is shown in a pop-up when you select the
"Import Config Files" from the "Tools" menu group.
Commands >> Time Periods >> Contact Templates >> Contacts >> Contact Groups >> Host Templates >> Hosts >> Host Groups >> Service Templates >> Services >> Service Groups
Thanks.
Please follow the import procedure described in the guide below:
https://assets.nagios.com/downloads/nag ... ios-xi.pdf
Since you going from one xi server to another, the prep tool is not required but, remember that you need to import the configs in order. The order is shown in a pop-up when you select the
"Import Config Files" from the "Tools" menu group.
Commands >> Time Periods >> Contact Templates >> Contacts >> Contact Groups >> Host Templates >> Hosts >> Host Groups >> Service Templates >> Services >> Service Groups
Thanks.
-
- Posts: 32
- Joined: Tue Aug 04, 2020 9:37 am
- Location: Bucharest
Re: duplicating config from xi to another xi
Cool, that sounds like what I was initially thinking too.
One additional question thou. I don't have a hosts.cfg file, but a bunch of <hostname.cfg> files in a subfolder named hosts/ in etc/.
Do I need to go one by one or is the wizard capable of working with multiple hosts selection ?
Thanks.
One additional question thou. I don't have a hosts.cfg file, but a bunch of <hostname.cfg> files in a subfolder named hosts/ in etc/.
Do I need to go one by one or is the wizard capable of working with multiple hosts selection ?
Thanks.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: duplicating config from xi to another xi
Hi TethiS,
For Nagios xi, each host has to have a separate file ( Nagios Core doesn't; care and that's why there is the import prep tool). However, there's no need to do each separately, you can put all the hosts file in the import directory and then move to the next object type.
I would recommend running any apply configuration from the CLI after each object type for troubleshooting as it's easier to catch any errors.
This can also be done in the GUI, by going to Configure > CCM > Tools > Import Config FIles
Hope that helps. Let us know if you have more questions.
Benjamin
For Nagios xi, each host has to have a separate file ( Nagios Core doesn't; care and that's why there is the import prep tool). However, there's no need to do each separately, you can put all the hosts file in the import directory and then move to the next object type.
I would recommend running any apply configuration from the CLI after each object type for troubleshooting as it's easier to catch any errors.
Code: Select all
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
Hope that helps. Let us know if you have more questions.
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 32
- Joined: Tue Aug 04, 2020 9:37 am
- Location: Bucharest
Re: duplicating config from xi to another xi
Thanks Benjamin,
I just copied the content of donor etc/ folder to etc/cfgprep/ of the receiver then went in the Wizard of importing on the receiver nagiosxi and did the importing of files in the suggested order.
It went ok, without errors.
Only thing to notice is that the services/hosts marked as Inactive (donor side) are not migrated and the existing stuff on the receiver side it is not deleted, which is probably the desired behavior.
Thanks for the assistance !
I just copied the content of donor etc/ folder to etc/cfgprep/ of the receiver then went in the Wizard of importing on the receiver nagiosxi and did the importing of files in the suggested order.
It went ok, without errors.
Only thing to notice is that the services/hosts marked as Inactive (donor side) are not migrated and the existing stuff on the receiver side it is not deleted, which is probably the desired behavior.
Thanks for the assistance !
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: duplicating config from xi to another xi
Hello TethiS,
Glad to hear that worked out. On the donor side, anything marked as inactive would not be written out into cfg files, but will remain in the database.
Also, if you are finished with the transfers, make sure the import directory is empty.
Let us know if you need anything else or if it's okay to close this topic.
Regards,
Benjamin
Glad to hear that worked out. On the donor side, anything marked as inactive would not be written out into cfg files, but will remain in the database.
Also, if you are finished with the transfers, make sure the import directory is empty.
Code: Select all
/usr/local/nagios/etc/import
Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 32
- Joined: Tue Aug 04, 2020 9:37 am
- Location: Bucharest
Re: duplicating config from xi to another xi
Thanks Benjamin,
All is fine now.
You can close this topic.
Best Regards!
All is fine now.
You can close this topic.
Best Regards!
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: duplicating config from xi to another xi
Hi TethiS,
Excellent! We'll close this out.
Have a great weekend!
Excellent! We'll close this out.
Have a great weekend!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!