Browse Source

roles/icinga2: add dns monitoring for web services

python3
Zolfa 4 years ago
parent
commit
507072ba09
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      roles/icinga2/files/icinga2/services.conf

+ 11
- 0
roles/icinga2/files/icinga2/services.conf View File

@ -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"
}

Loading…
Cancel
Save