Object Service "amavis" doesn't get a connection

Hello,
I use the SSH-connection from my Icinga-Master to the observed clients. In the host.conf for mail server
/etc/icinga2/conf.d/hosts/mailserver.conf I have included following objects to check Amavis:

object Service "amavis" {
  import "generic-service"

  host_name = "mx.germany.local"
  check_command = "smtp"

  vars.smtp_address = "127.0.0.1"
  vars.smtp_port = 10024

  // notification tag
  vars.sections = [ "mail" ]
}

object Service "smtp tcp/10025" {
  import "generic-service"

  host_name = "mx.germany.local"
  check_command = "smtp"

  vars.smtp_address = "127.0.0.1"
  vars.smtp_port = 10025

  // notification tag
  vars.sections = [ "mail" ]
}

In Icinga2web I have this result
connect to address 127.0.0.1 and port 10024: Connection refused
How I have build the object so it’s running also with SSH connection? Icinga agent doesn’t run at my system because of an firewall.

Greetings
BrotherA

None of the host/service objects know about SSH as a transport. Right now, they are executed locally on the Icinga master. I’d suggest fixing the firewall problems and run Icinga as agent, with just adding the command_endpoint to your service. Changing this to by_ssh is cumbersome, but possible (see the docs for SSH agents).

Cheers,
Michael

The firewall construct is so needed. I can’t solve it just, so I need the solution about SSH , especially if I haven’t any windows clients.

Best regards

BrotherA

Okay,
thanks to you. This way is definitley the better way in my case.

Best regards

BrotherA