Is it possible to find out on which icinga2 node is Director module running in a distributed monitoring Environment using Icinga2 API?
I have several nodes in my master zone and one of them runs Director to generate and distribute the configs for all the nodes. I would like to find out from an external script, that makes Icinga2 API calls, which node runs Director.
I know, that I could make MySQL queries or SSH connections to each node, and check whether the DB for the Director is there or if there are config files for Director, but I would prefer icinga2 API calls.
Is it possible?