From 5315b439af1f72c3282549508ae58d86d66e38ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 22 Oct 2021 20:55:31 +0200 Subject: Remove duply-backup --- modules/private/monitoring/default.nix | 3 --- .../private/monitoring/objects_monitoring-1.nix | 25 +--------------------- 2 files changed, 1 insertion(+), 27 deletions(-) (limited to 'modules/private/monitoring') diff --git a/modules/private/monitoring/default.nix b/modules/private/monitoring/default.nix index bdb5c93..0783c2f 100644 --- a/modules/private/monitoring/default.nix +++ b/modules/private/monitoring/default.nix @@ -174,9 +174,6 @@ in }; }; - services.duplyBackup.profiles.monitoring = { - rootDir = config.services.naemon.varDir; - }; security.sudo.extraRules = let pluginsSudo = lib.lists.remove null (lib.attrsets.mapAttrsToList (k: v: if (v ? sudo) diff --git a/modules/private/monitoring/objects_monitoring-1.nix b/modules/private/monitoring/objects_monitoring-1.nix index 0e7d9df..563be16 100644 --- a/modules/private/monitoring/objects_monitoring-1.nix +++ b/modules/private/monitoring/objects_monitoring-1.nix @@ -1,26 +1,4 @@ { config, pkgs, nodes, hostFQDN, emailCheck, lib, ... }: -let - to_resource = func: cfg: lib.flatten (lib.optionals cfg.enable (lib.mapAttrsToList func cfg.profiles)); - to_backup_age_dependency = name: profile: map (remote: - { - dependent_host_name = "eldiron.immae.eu"; - host_name = "eldiron.immae.eu"; - dependent_service_description = "${remote} backup for ${name} is not too old"; - service_description = "${remote} backup is up and not full"; - execution_failure_criteria = "u"; - notification_failure_criteria = "u"; - }) profile.remotes; - to_backup_age = name: profile: map (remote: - { - service_description = "${remote} backup for ${name} is not too old"; - host_name = "eldiron.immae.eu"; - use = "external-service"; - check_command = ["check_backup_${remote}_age" name]; - - check_interval = "120"; - notification_interval = "1440"; - }) profile.remotes; -in { activatedPlugins = [ "dns" "ftp" "git" "http" "imap" "ovh" "tcp" ]; host = { @@ -718,7 +696,7 @@ in check_command = [ "check_https" "origny.tiboqorl.fr" "/" "Home Assistant" ]; _webstatus_namespace = "tiboqorl"; } - ] ++ to_resource to_backup_age nodes.eldiron.config.services.duplyBackup; + ]; contact = { telio-tortay = config.myEnv.monitoring.contacts.telio-tortay // { use = "generic-contact"; @@ -733,5 +711,4 @@ in telio-tortay = { alias = "Telio Tortay"; members = "immae"; }; tiboqorl = { alias = "Tiboqorl"; members = "immae"; }; }; - servicedependency = to_resource to_backup_age_dependency nodes.eldiron.config.services.duplyBackup; } -- cgit v1.2.3