X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fobjects_monitoring-1.nix;h=46916f41edd28930adcfb975c2ec7ab656bb1355;hb=9271611c189a3ed4129d3b98422f86ab3f774f10;hp=a46b684ebc3c25a1a406fd5a87b587bcffdece75;hpb=e820134d38c3b7470ea5112f40a6dc967f039878;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 a46b684..46916f4 100644 --- a/modules/private/monitoring/objects_monitoring-1.nix +++ b/modules/private/monitoring/objects_monitoring-1.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, hostFQDN, emailCheck, ... }: { host = { # Dummy host for testing @@ -22,6 +22,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 +79,30 @@ _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 = "120"; + } + + # Backup services + { + service_description = "Eriomem backup is up and not full"; + host_name = "eldiron.immae.eu"; + use = "external-service"; + check_command = "check_eriomem"; + + check_interval = "120"; + notification_interval = "120"; + + servicegroups = "webstatus-backup"; + } + # DNS services { service_description = "eldiron dns is active and authoritative for aten.pro"; @@ -392,7 +418,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" "Roundcube"]; + check_command = ["check_https" "mail.immae.eu" "/roundcube/" "<title>Roundcube"]; servicegroups = "webstatus-webapps,webstatus-email"; _webstatus_name = "Roundcube"; @@ -525,7 +551,7 @@ service_description = "Telio website is running on realistesmedia.fr"; host_name = "eldiron.immae.eu"; use = "external-web-service"; - check_command = ["check_https" "realistesmedia.fr" "/" "<title>Réal'istes"]; + check_command = ["check_https" "realistesmedia.fr" "/" "doctype html"]; contact_groups = "telio-tortay"; }