X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fmonitoring%2Fobjects_backup-2.nix;h=b8ecb815bc7e89dfa58201db0b8c71a32b9f5a23;hb=eb071dd42518cb40d629e5bde29c6aed72e4d4df;hpb=9f2025235d888eb4a7822024a5fad2e288388814;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/monitoring/objects_backup-2.nix b/modules/private/monitoring/objects_backup-2.nix new file mode 100644 index 0000000..b8ecb81 --- /dev/null +++ b/modules/private/monitoring/objects_backup-2.nix @@ -0,0 +1,30 @@ +{ ... }: +{ + service = [ + { + service_description = "Size on /backup2 partition"; + use = "local-service"; + check_command = ["check_local_disk" "10%" "5%" "/backup2"]; + } + { + service_description = "Last backup in /backup2/phare is not too old"; + use = "local-service"; + check_command = ["check_last_file_date" "/backup2/phare" "14" "backup"]; + } + { + service_description = "Last backup in /backup2/immae_eu is not too old"; + use = "local-service"; + check_command = ["check_last_file_date" "/backup2/immae_eu" "14" "backup"]; + } + { + service_description = "Last backup in /backup2/immae_fr is not too old"; + use = "local-service"; + check_command = ["check_last_file_date" "/backup2/immae_fr" "14" "backup"]; + } + { + service_description = "Last postgresql dump in /backup2/eldiron/postgresql_backup is not too old"; + use = "local-service"; + check_command = ["check_last_file_date" "/backup2/eldiron/postgresql_backup" "7" "postgres"]; + } + ]; +}