]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - systems/eldiron/duply_backup.nix
Squash changes containing private information
[perso/Immae/Config/Nix.git] / systems / eldiron / duply_backup.nix
similarity index 83%
rename from modules/duply_backup/default.nix
rename to systems/eldiron/duply_backup.nix
index 846b1d472a6c0fc8ca9c7c31034c0f77e2c28875..590d12502b0f587e731612c41dccda9d782ec1bb 100644 (file)
@@ -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";
+      }
+    ];
   };
 }