How to import all existing icinga2 objects into Icinga Director?

Hi

It’s seems that there is no way to import (or synchronize) static objects declared in Icinga2 .conf files in Icinga Director …
Can you please confirm this?

I’m migrating Icinga1 to Icinga2, and would like to have benefits to use Director after.
We have a lots of hosts & services, as shown below.
For information, .conf files are migrated from Icinga1 using a script, or generated from a script based on a custom AWS export.

[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 2 NotificationCommands.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 22983 Notifications.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1 IcingaApplication.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1718 Hosts.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1776 HostGroups.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1 FileLogger.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 3 Zones.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1 CheckerComponent.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1 ExternalCommandListener.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1 Endpoint.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 3 ApiUsers.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1 NotificationComponent.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1 ApiListener.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 107 CheckCommands.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 8 TimePeriods.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 266 UserGroups.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 111 Users.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 21443 Services.
[2023-11-08 10:23:17 +0100] information/ConfigItem: Instantiated 1254 ServiceGroups.

Thanks for replies

I’d not do this since the concept of icinga2 is fundamentally different from icinga1. I’d create an automation script to read host objects from the old database and send them via Rest API to icinga’s director. I’d do the same for users if it is worth.

Services are configured completely different. icinga1 has a 1:1 assignment, icinga2 1:many or even many:many. With a single service definition you might create dozens or even hundreds of service objects. Using icinga’s director also provide new service sets e.g. you have many SQL servers and you create one service set with plenty checks and assign it to corresponding hosts.

Thanks Roland for reply.
For the moment, I can’t move all to Icinga Director.
but I already transformed all Icinga1 to Icinga2 using conf file.
Maybe I’ll investigate later using Icinga Director.

Regards