diff options
Diffstat (limited to 'systems')
-rw-r--r-- | systems/eldiron/dns.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/systems/eldiron/dns.nix b/systems/eldiron/dns.nix index 7645b69..857b233 100644 --- a/systems/eldiron/dns.nix +++ b/systems/eldiron/dns.nix | |||
@@ -303,6 +303,10 @@ in | |||
303 | install -dm755 -o named /var/lib/named/dnssec_keys | 303 | install -dm755 -o named /var/lib/named/dnssec_keys |
304 | ''); | 304 | ''); |
305 | myServices.monitoring.fromMasterActivatedPlugins = [ "dns" ]; | 305 | myServices.monitoring.fromMasterActivatedPlugins = [ "dns" ]; |
306 | myServices.monitoring.fromMasterObjects.contactgroup.dns-raito = { | ||
307 | alias = "Secondary DNS Raito"; | ||
308 | members = "immae"; | ||
309 | }; | ||
306 | myServices.monitoring.fromMasterObjects.service = lib.mkMerge (lib.mapAttrsToList (name: z: | 310 | myServices.monitoring.fromMasterObjects.service = lib.mkMerge (lib.mapAttrsToList (name: z: |
307 | lib.optional (builtins.elem "immae" z.ns) { | 311 | lib.optional (builtins.elem "immae" z.ns) { |
308 | service_description = "eldiron dns is active and authoritative for ${name}"; | 312 | service_description = "eldiron dns is active and authoritative for ${name}"; |
@@ -319,6 +323,7 @@ in | |||
319 | host_name = config.hostEnv.fqdn; | 323 | host_name = config.hostEnv.fqdn; |
320 | use = "dns-service"; | 324 | use = "dns-service"; |
321 | check_command = ["check_external_dns" "kurisu.dual.lahfa.xyz" name "-A"]; | 325 | check_command = ["check_external_dns" "kurisu.dual.lahfa.xyz" name "-A"]; |
326 | contact_groups = "dns-raito"; | ||
322 | 327 | ||
323 | servicegroups = "webstatus-dns"; | 328 | servicegroups = "webstatus-dns"; |
324 | _webstatus_name = "${name} (Secondary DNS Raito)"; | 329 | _webstatus_name = "${name} (Secondary DNS Raito)"; |
@@ -328,6 +333,7 @@ in | |||
328 | host_name = config.hostEnv.fqdn; | 333 | host_name = config.hostEnv.fqdn; |
329 | use = "dns-service"; | 334 | use = "dns-service"; |
330 | check_command = ["check_dns_soa" "kurisu.dual.lahfa.xyz" name config.hostEnv.fqdn]; | 335 | check_command = ["check_dns_soa" "kurisu.dual.lahfa.xyz" name config.hostEnv.fqdn]; |
336 | contact_groups = "dns-raito"; | ||
331 | 337 | ||
332 | servicegroups = "webstatus-dns"; | 338 | servicegroups = "webstatus-dns"; |
333 | _webstatus_name = "${name} (Secondary DNS Raito up to date)"; | 339 | _webstatus_name = "${name} (Secondary DNS Raito up to date)"; |