Director import from existing Icinga2/Director

Hi,

I have to install a new Icinga2/Icingaweb2/Director Master and like to import all hosts/templates/jobs at least everthing from an existin Icinga2/Director master. Is this possinle trough a Director Kickstart configuration or a import source Rest-API/CoreAPI? Or is the correct way to dump and import the whole director database?

Best regards,
Hartmut

Hi Hartmut,

welcome to the community!

Take a look at the configuration baskets: https://icinga.com/docs/director/latest/doc/30-Configuration-Baskets/

This should be exactly what you’re looking for. :slight_smile:

Best regards,
Marcel

1 Like

Hi,

I didn’t find the way how to export/import Hosts with baskets? It’s possible to download the hosts to json file, but how to import it on the new master?

Best regards,
Hartmut

Hi,

We had exactly the same problem (export template/command/director configuration from a working director setup to a fresh one). Both director Version 1.7.2.

The export with baskets produced a downloadable .json file, unfortunately the fresh director system refused to import them due to referencing “unknown” objects/templates (regardless the fact that these “unknown” objects were included within the basket).

Finally we decided to make db dumb on the working system and imported that dump on the fresh one. Which worked fine.

Questions:

  1. Are baskets in advantage over a db dump in order to start over with a fresh system?
  2. How to import a basket on a fresh system? (How to deal with referencing problem? Or did the problem occur due to a misconfiguration of the basket?)

Best regards,
Dave