diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-02 01:33:08 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-02 01:33:08 +0100 |
commit | eb071dd42518cb40d629e5bde29c6aed72e4d4df (patch) | |
tree | f9a109801d540ef8fc4c1b0656436f560ad1f6b7 /modules/private/monitoring/conf/specific_backup-2.cfg | |
parent | 9f2025235d888eb4a7822024a5fad2e288388814 (diff) | |
download | Nix-eb071dd42518cb40d629e5bde29c6aed72e4d4df.tar.gz Nix-eb071dd42518cb40d629e5bde29c6aed72e4d4df.tar.zst Nix-eb071dd42518cb40d629e5bde29c6aed72e4d4df.zip |
Use nix expressions to build monitoring list
Diffstat (limited to 'modules/private/monitoring/conf/specific_backup-2.cfg')
-rw-r--r-- | modules/private/monitoring/conf/specific_backup-2.cfg | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/private/monitoring/conf/specific_backup-2.cfg b/modules/private/monitoring/conf/specific_backup-2.cfg deleted file mode 100644 index ff91322..0000000 --- a/modules/private/monitoring/conf/specific_backup-2.cfg +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | # vim: filetype=nagios | ||
2 | |||
3 | define service { | ||
4 | service_description Size on /backup2 partition | ||
5 | check_command check_local_disk!10%!5%!/backup2 | ||
6 | use local-service | ||
7 | } | ||
8 | |||
9 | define command { | ||
10 | command_line /run/wrappers/bin/sudo -u "$ARG3$" $USER2$/check_last_file_date "$ARG1$" "$ARG2$" | ||
11 | command_name check_last_file_date | ||
12 | } | ||
13 | |||
14 | define service { | ||
15 | service_description Last backup in /backup2/phare is not too old | ||
16 | check_command check_last_file_date!/backup2/phare!14!backup | ||
17 | use local-service | ||
18 | } | ||
19 | |||
20 | define service { | ||
21 | service_description Last backup in /backup2/immae_eu is not too old | ||
22 | check_command check_last_file_date!/backup2/immae_eu!14!backup | ||
23 | use local-service | ||
24 | } | ||
25 | |||
26 | define service { | ||
27 | service_description Last backup in /backup2/immae_fr is not too old | ||
28 | check_command check_last_file_date!/backup2/immae_fr!14!backup | ||
29 | use local-service | ||
30 | } | ||
31 | |||
32 | define service { | ||
33 | service_description Last postgresql dump in /backup2/eldiron/postgresql_backup is not too old | ||
34 | check_command check_last_file_date!/backup2/eldiron/postgresql_backup!7!postgres | ||
35 | use local-service | ||
36 | } | ||