From d006558dead086db86daa9e8fa51e95ad8dc59cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 12 Oct 2023 00:50:39 +0200 Subject: [PATCH] Add contact group for Raito secondary DNS --- deploy/flake.lock | 12 ++++++------ flake.lock | 4 ++-- flakes/flake.lock | 2 +- systems/eldiron/dns.nix | 6 ++++++ 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/deploy/flake.lock b/deploy/flake.lock index c612aef..e499dc0 100644 --- a/deploy/flake.lock +++ b/deploy/flake.lock @@ -2783,7 +2783,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-YmxnhQgbNWYxJKGgLz0x2EDmbp/1aOVyO/b+rS2zP0w=", + "narHash": "sha256-8hruoAYeX7Oczb6tu7lDDOZKFbAdHp6I7mC+K1C4itw=", "path": "../flakes", "type": "path" }, @@ -3903,7 +3903,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-0V71uNTospNTAWsRuCBmTUtes7ECx9D83d/UOtHOek8=", + "narHash": "sha256-oOl1flplnhPOMDiuQyvwS8iSP2caYyK9heTQPzlCNmo=", "path": "../systems/eldiron", "type": "path" }, @@ -8888,11 +8888,11 @@ "nixpkgs": "nixpkgs_106" }, "locked": { - "lastModified": 1697062813, - "narHash": "sha256-pbS3ZgZzCkbL3XO0DpoqQU4JHOMd980vTPX4seMH+U8=", + "lastModified": 1697064736, + "narHash": "sha256-kVSGqn6rmXnalgpVsRTxYsRCTWCa1dJByLJU/WudTEA=", "ref": "master", - "rev": "6f65e826f8baaf08a651366f8e05b58d6a7326ad", - "revCount": 701, + "rev": "2cdb86ed84d3110ec30c9d7869ba011e750d6df8", + "revCount": 702, "type": "git", "url": "git+ssh://gitolite@git.immae.eu/perso/Immae/Config/Nix/Nixops/Secrets" }, diff --git a/flake.lock b/flake.lock index 5647e9e..92e34d8 100644 --- a/flake.lock +++ b/flake.lock @@ -2664,7 +2664,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-YmxnhQgbNWYxJKGgLz0x2EDmbp/1aOVyO/b+rS2zP0w=", + "narHash": "sha256-8hruoAYeX7Oczb6tu7lDDOZKFbAdHp6I7mC+K1C4itw=", "path": "./flakes", "type": "path" }, @@ -3919,7 +3919,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-0V71uNTospNTAWsRuCBmTUtes7ECx9D83d/UOtHOek8=", + "narHash": "sha256-oOl1flplnhPOMDiuQyvwS8iSP2caYyK9heTQPzlCNmo=", "path": "../systems/eldiron", "type": "path" }, diff --git a/flakes/flake.lock b/flakes/flake.lock index 938fbf6..26f5d4a 100644 --- a/flakes/flake.lock +++ b/flakes/flake.lock @@ -3824,7 +3824,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-0V71uNTospNTAWsRuCBmTUtes7ECx9D83d/UOtHOek8=", + "narHash": "sha256-oOl1flplnhPOMDiuQyvwS8iSP2caYyK9heTQPzlCNmo=", "path": "../systems/eldiron", "type": "path" }, 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)"; -- 2.41.0