]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/objects_phare.nix
Add megaraid monitoring
[perso/Immae/Config/Nix.git] / modules / private / monitoring / objects_phare.nix
index ab4643683027b266a5b7148ae62df6ee731572a1..a61b46ea24fd18a0a2b0fc8a6af9f29a51dac288 100644 (file)
@@ -1,4 +1,4 @@
-{ ... }:
+{ emailCheck, ... }:
 {
   host = {
     "phare.normalesup.org" = {
@@ -7,16 +7,10 @@
       use = "linux-server";
       hostgroups = "webstatus-hosts";
       _webstatus_name = "phare";
+      _webstatus_vhost = "status.immae.eu";
     };
   };
   service = [
-    {
-      service_description = "phare.normalesup.org email service is active";
-      use = "external-passive-service";
-      host_name = "phare.normalesup.org";
-      freshness_threshold = "1350";
-      retry_interval = "1";
-      servicegroups = "webstatus-email";
-    }
+    (emailCheck "phare" "phare.normalesup.org")
   ];
 }