diff --git a/roles/mailserver_monitoring/templates/zones.d/master/services/mailserver.conf.j2 b/roles/mailserver_monitoring/templates/zones.d/master/services/mailserver.conf.j2 index 23fc4cf..f7f16ff 100644 --- a/roles/mailserver_monitoring/templates/zones.d/master/services/mailserver.conf.j2 +++ b/roles/mailserver_monitoring/templates/zones.d/master/services/mailserver.conf.j2 @@ -3,6 +3,7 @@ apply Service "smtp" { import "generic-service" check_command = "smtp" + command_endpoint = host.name assign where host.name == "{{ inventory_hostname }}" }