I am using director to configure my icinga2 hosts. As I have hosts that are not reachable from the master server directly, I cannot e.g. have the host check as a ping, as the machine is not reachable from the outside.
For that reason I would like to have the host check command executed locally on the host itself, same as I do with the service checks. I haven’t found a way in director to have the hostcheck command executed on the host/agent locally.
I am looking for a simliar option as I have for the service configuration with “Run on agent”. In the host defintion i can only configure the “check command” for the host, but not to have it run on the host itself.
Or what other option do I have for the hostcheck command? Would I need to create and set a cluster zone for each host where I want to have the hostcheck executed locally?
Thanks for your help.