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?
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?
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:
Are baskets in advantage over a db dump in order to start over with a fresh system?
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?)