How to start a check for a Client on the master?

Hello,

I have a check which need to be run from outside a Client. Because it should check smb shares (check_smb_shares). The Check will fail if it starts from the client.

How can i order this check to this Client but still will be run on the master?

Hi
You can assign the service the

command_endpoint = /location/
and the service will execute the check from the specified location.

See the example here :

apply Service "disk" {
  check_command = "disk"

  //specify where the check is executed
  command_endpoint = host.vars.client_endpoint

  assign where host.vars.client_endpoint
}

Thank you for your fast answer.

I tried it but we are working with the director and at the moment it is impossible to set the command_endpoint.

Do you have any other Ideas?

The Director hides the command endpoint settings within the host settings, just mark this host as agent.

How do I do this?
(sry if it is a stupid question)
Here?
image