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