diff --git a/roles/icinga2/files/icinga2/services.conf b/roles/icinga2/files/icinga2/services.conf index 4b9d41b..2ca46ae 100644 --- a/roles/icinga2/files/icinga2/services.conf +++ b/roles/icinga2/files/icinga2/services.conf @@ -143,3 +143,14 @@ apply Service "ldap_sync" { assign where host.vars.ldap_master } +apply Service "dns" { + import "generic-service" + + check_command = "dns" + + if (host.vars.dns_a_record) { + vars.dns_expected_answer = host.vars.dns_a_record + } + + assign where host.vars.host_type == "web service" +} \ No newline at end of file