X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=systems%2Feldiron%2Fduply_backup.nix;fp=modules%2Fduply_backup%2Fdefault.nix;h=590d12502b0f587e731612c41dccda9d782ec1bb;hb=1a64deeb894dc95e2645a75771732c6cc53a79ad;hp=846b1d472a6c0fc8ca9c7c31034c0f77e2c28875;hpb=fa25ffd4583cc362075cd5e1b4130f33306103f0;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/duply_backup/default.nix b/systems/eldiron/duply_backup.nix similarity index 83% rename from modules/duply_backup/default.nix rename to systems/eldiron/duply_backup.nix index 846b1d4..590d125 100644 --- a/modules/duply_backup/default.nix +++ b/systems/eldiron/duply_backup.nix @@ -120,5 +120,32 @@ in sha256 = "1ixx4c6j3m26j8dp9a3dkvxc80v1nr5aqgmawwgs06bskasqkvvh"; }) ]; + + myServices.monitoring.fromMasterActivatedPlugins = [ "eriomem" ]; + myServices.monitoring.fromMasterObjects.service = [ + { + service_description = "eriomem backup is up and not full"; + host_name = config.hostEnv.fqdn; + use = "external-service"; + check_command = "check_backup_eriomem"; + + check_interval = 120; + notification_interval = "1440"; + + servicegroups = "webstatus-backup"; + } + + { + service_description = "ovh backup is up and not full"; + host_name = config.hostEnv.fqdn; + use = "external-service"; + check_command = "check_ok"; + + check_interval = 120; + notification_interval = "1440"; + + servicegroups = "webstatus-backup"; + } + ]; }; }