How to get the director to run all icingacli checks only on the 2 dedicated icingaweb2 hosts, independent on which host the service is attached to and in which zone the host with the service is located?
I guess in the DSL I could just set all the command_endpoint of all icingacli to one of the icingaweb2 servers or to the icingaweb2 zone?
I think the most practical way currently is, to set the command_endpoint attribute via the director HTTP API. Couldn’t find a guide to that spontaneously though.
Does the director HTTP API allow a fine grained definition of command_endpoint?
The web UI only allows run on agent yes/no wich translates to command_endpoint = host_name/null.
icingacli director service set tpl-svc-x509 --command_endpoint icingaweb-endpoint ran without error but still had to fix my zones mess as the checks where staying in overdue state.
add a Zone with the Agent name of the host that should execute the check, with the correct parent zone (This is the default so it doesnt interfear with the director config)
add an endpoint with the name of Agent name.
If you set the IP address of the endpoint, the Icinga-master will actively connect to the agent