X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fobjects_monitoring-1.nix;h=320f6e33fa7c4be2445ac9d2ac7653b560b38dc3;hb=2d7caffb06095924f324870a30b119246c6f9913;hp=f69d3ffb37268c8039b17e155d3859e13eb74009;hpb=258441019881c451686dbe537069228cc8e49612;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/monitoring/objects_monitoring-1.nix b/modules/private/monitoring/objects_monitoring-1.nix index f69d3ff..320f6e3 100644 --- a/modules/private/monitoring/objects_monitoring-1.nix +++ b/modules/private/monitoring/objects_monitoring-1.nix @@ -1,4 +1,23 @@ -{ config, pkgs, ... }: +{ 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 = "1440"; + }; +in { host = { # Dummy host for testing @@ -22,6 +41,8 @@ # check_command = "check_critical"; # } + (emailCheck "monitoring-1" hostFQDN) + { service_description = "ftp has access to database for authentication"; host_name = "eldiron.immae.eu"; @@ -77,6 +98,17 @@ _webstatus_url = "imap.immae.eu"; } + # Third party services + { + service_description = "OVH account has enough sms"; + host_name = "eldiron.immae.eu"; + use = "external-service"; + check_command = "check_ovh_sms"; + + check_interval = "120"; + notification_interval = "1440"; + } + # Backup services { service_description = "Eriomem backup is up and not full"; @@ -85,7 +117,7 @@ check_command = "check_eriomem"; check_interval = "120"; - notification_interval = "120"; + notification_interval = "1440"; servicegroups = "webstatus-backup"; } @@ -405,7 +437,7 @@ service_description = "roundcube website is running on mail.immae.eu"; host_name = "eldiron.immae.eu"; use = "external-web-service"; - check_command = ["check_https_code" "mail.immae.eu" "/roundcube/" "401" "