Am tring to install director for my icinga cluster.
I need to keep the actuel configuration that is runing in production.
And am wondering if ther is any way to copy all my configuration (zones, endpoints, hosts …) to the icinga director in one shot?
I have checked the director “Import source” and “sync rules” but its seems that i have to choose one by one the faelds that i want to sing witch is tedious task.
Thank you for teh reply.
Whats the best way to import the configuration from icinga et director?
If i sucsead at migrating the configuration ill delet the original and ill start working withe director only.
But for now icant recreate manualu all the hosts and servises i alrady have in prodution.
As @rsx said you can use both ways at once.
You will not be able to edit configuration from the files in side the Director, though you can still use them (like defined commands, templates or users) after running the kickstart wizard.
The other way round will not work though, meaning afaik you can’t use objects defined in the Icinga Director in the local config files.
I think, mixing configuration files and configuration with director on the same icinga2 instance is not a good idea. I would think about setting up a new icinga2 installation in parallel.
I would try to use the icinga2 api to get the configuration from the old icinga2 instance and then use the director api to configure the director. There are some python librarys for the icinga2 api and you can use ansible and the director collection from t-systems (T_Systems_Mms.Icinga_Director — Ansible Documentation) to configure the director through the director api.