X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fobjects_monitoring-1.nix;h=563be167657b63d6ceadadb2f09baf8e21da6923;hb=5315b439af1f72c3282549508ae58d86d66e38ec;hp=3200d5c3f9fa61153100be4591b5b9d07cacbdfa;hpb=ef0a9217fba817d7fb71ccd4cca65919dd89ebec;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 3200d5c..563be16 100644
--- a/modules/private/monitoring/objects_monitoring-1.nix
+++ b/modules/private/monitoring/objects_monitoring-1.nix
@@ -1,5 +1,6 @@
-{ config, pkgs, hostFQDN, emailCheck, ... }:
+{ config, pkgs, nodes, hostFQDN, emailCheck, lib, ... }:
{
+ activatedPlugins = [ "dns" "ftp" "git" "http" "imap" "ovh" "tcp" ];
host = {
# Dummy host for testing
# "dummy-host" = {
@@ -79,15 +80,37 @@
_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";
+ # host_name = "eldiron.immae.eu";
+ # use = "external-service";
+ # check_command = "check_backup_eriomem";
+
+ # check_interval = "120";
+ # notification_interval = "1440";
+
+ # servicegroups = "webstatus-backup";
+ # }
{
- service_description = "Eriomem backup is up and not full";
+ service_description = "ovh backup is up and not full";
host_name = "eldiron.immae.eu";
use = "external-service";
- check_command = "check_eriomem";
+ check_command = "check_ok";
check_interval = "120";
- notification_interval = "120";
+ notification_interval = "1440";
servicegroups = "webstatus-backup";
}
@@ -326,6 +349,17 @@
_webstatus_url = "https://cloud.immae.eu";
}
+ {
+ service_description = "nextcloud website is running on nextcloud.4c.salle-s.org";
+ host_name = "quatresaisons.immae.eu";
+ use = "external-web-service";
+ check_command = ["check_https" "nextcloud.4c.salle-s.org" "/" "a safe home for all your data"];
+
+ servicegroups = "webstatus-webapps";
+ _webstatus_name = "Nextcloud";
+ _webstatus_url = "https://nextcloud.4c.salle-s.org";
+ }
+
{
service_description = "davical website is running on dav.immae.eu";
host_name = "eldiron.immae.eu";
@@ -407,7 +441,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/" "Roundcube"];
servicegroups = "webstatus-webapps,webstatus-email";
_webstatus_name = "Roundcube";
@@ -451,7 +485,7 @@
service_description = "gitweb website is running on git.immae.eu";
host_name = "eldiron.immae.eu";
use = "external-web-service";
- check_command = ["check_https" "git.immae.eu" "/" "git web interface"];
+ check_command = ["check_https" "git.immae.eu" "/cgit" "Immaeâs git"];
servicegroups = "webstatus-webapps";
_webstatus_name = "Git";
@@ -540,7 +574,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" "/" "Réal'istes"];
+ check_command = ["check_https" "realistesmedia.fr" "/" "doctype html"];
contact_groups = "telio-tortay";
}
@@ -632,24 +666,6 @@
_webstatus_url = "https://www.sandetludo.com/";
}
- {
- service_description = "Maison bbc accepts add requests on http";
- host_name = "eldiron.immae.eu";
- use = "external-web-service";
- check_command = [ "check_http" "maison.bbc.bouya.org" "/add.php" "^$"];
- }
-
- {
- service_description = "Maison bbc has up to date data";
- host_name = "eldiron.immae.eu";
- use = "generic-service";
- contact_groups = "maison-bbc";
- notification_interval = "1440";
- check_command = "check_maison_bbc";
- flap_detection_enabled = "0";
- max_check_attempts = "1";
- }
-
# SSL
{
service_description = "ldap SSL is up to date";
@@ -661,20 +677,38 @@
_webstatus_name = "LDAP";
_webstatus_url = "ldap.immae.eu";
}
+
+ # Tiboqorl
+ {
+ service_description = "Cyllene support page is running";
+ host_name = "tiboqorl.fr";
+ use = "external-web-service";
+ contact_groups = "tiboqorl";
+ check_command = [ "check_https" "sc.groupe-cyllene.com" "/" "Support Client Cyllene" ];
+ _webstatus_namespace = "tiboqorl";
+ }
+
+ {
+ service_description = "Origny page is running";
+ host_name = "tiboqorl.fr";
+ use = "external-web-service";
+ contact_groups = "tiboqorl";
+ check_command = [ "check_https" "origny.tiboqorl.fr" "/" "Home Assistant" ];
+ _webstatus_namespace = "tiboqorl";
+ }
];
contact = {
telio-tortay = config.myEnv.monitoring.contacts.telio-tortay // {
use = "generic-contact";
contactgroups = "telio-tortay";
};
- papa = config.myEnv.monitoring.contacts.papa // {
+ thibault = config.myEnv.monitoring.contacts.thibault // {
use = "generic-contact";
- contactgroups = "maison-bbc";
- service_notification_commands = "notify-maison-bbc-by-email";
+ contactgroups = "tiboqorl";
};
};
contactgroup = {
- maison-bbc = { alias = "Maison BBC"; };
telio-tortay = { alias = "Telio Tortay"; members = "immae"; };
+ tiboqorl = { alias = "Tiboqorl"; members = "immae"; };
};
}