]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/objects_eldiron.nix
Use nix expressions to build monitoring list
[perso/Immae/Config/Nix.git] / modules / private / monitoring / objects_eldiron.nix
diff --git a/modules/private/monitoring/objects_eldiron.nix b/modules/private/monitoring/objects_eldiron.nix
new file mode 100644 (file)
index 0000000..897fc15
--- /dev/null
@@ -0,0 +1,15 @@
+{ ... }:
+{
+  service = [
+    {
+      service_description = "Postgresql replication for backup-2 is up to date";
+      use = "local-service";
+      check_command = ["check_postgresql_replication" "backup-2" "/run/postgresql" "5432"];
+    }
+    {
+      service_description = "mailq is empty";
+      use = "local-service";
+      check_command = ["check_mailq"];
+    }
+  ];
+}