From d006558dead086db86daa9e8fa51e95ad8dc59cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 12 Oct 2023 00:50:39 +0200 Subject: Add contact group for Raito secondary DNS --- systems/eldiron/dns.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'systems/eldiron') 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 install -dm755 -o named /var/lib/named/dnssec_keys ''); myServices.monitoring.fromMasterActivatedPlugins = [ "dns" ]; + myServices.monitoring.fromMasterObjects.contactgroup.dns-raito = { + alias = "Secondary DNS Raito"; + members = "immae"; + }; myServices.monitoring.fromMasterObjects.service = lib.mkMerge (lib.mapAttrsToList (name: z: lib.optional (builtins.elem "immae" z.ns) { service_description = "eldiron dns is active and authoritative for ${name}"; @@ -319,6 +323,7 @@ in host_name = config.hostEnv.fqdn; use = "dns-service"; check_command = ["check_external_dns" "kurisu.dual.lahfa.xyz" name "-A"]; + contact_groups = "dns-raito"; servicegroups = "webstatus-dns"; _webstatus_name = "${name} (Secondary DNS Raito)"; @@ -328,6 +333,7 @@ in host_name = config.hostEnv.fqdn; use = "dns-service"; check_command = ["check_dns_soa" "kurisu.dual.lahfa.xyz" name config.hostEnv.fqdn]; + contact_groups = "dns-raito"; servicegroups = "webstatus-dns"; _webstatus_name = "${name} (Secondary DNS Raito up to date)"; -- cgit v1.2.3