"by_ssh" plugin and ssh private key on satellite

Hi,

I want to setup a service apply rule n global templates to run it across various zones. I’m not using icinga2 agent or Director. I’ve the ssh private key available on all satellites which I want to use for ssh connection in this rule. Is there a way to use the key on the satellite and have it run a ssh command on the remote host?

Thanks

Hi @monigacom,

did you try to set the command_endpoint attribute in your service definition? This should be exactly what you were looking for.

Best Regards
Christoph