+{ config, pkgs, nodes, hostFQDN, emailCheck, ... }:
+let
+ to_eriomem_age_dependency = name: {
+ dependent_host_name = "eldiron.immae.eu";
+ host_name = "eldiron.immae.eu";
+ dependent_service_description = "Eriomem backup for ${name} is not too old";
+ service_description = "Eriomem backup is up and not full";
+ execution_failure_criteria = "u";
+ notification_failure_criteria = "u";
+ };
+ to_eriomem_age = name: {
+ service_description = "Eriomem backup for ${name} is not too old";
+ host_name = "eldiron.immae.eu";
+ use = "external-service";
+ check_command = ["check_eriomem_age" name];
+
+ check_interval = "120";
+ notification_interval = "120";
+ };
+in