aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-07-11 09:11:42 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-07-11 09:21:36 +0200
commitd8bc769648c1528f5d749deee060d70e326ef431 (patch)
tree06b1e40db99815133dcc40e3e68531d45e1bd228 /modules
parent0cdf494080b285e81b531a38dbbac7f7d8e9c990 (diff)
downloadPuppet-d8bc769648c1528f5d749deee060d70e326ef431.tar.gz
Puppet-d8bc769648c1528f5d749deee060d70e326ef431.tar.zst
Puppet-d8bc769648c1528f5d749deee060d70e326ef431.zip
Monitor rsync backups
Diffstat (limited to 'modules')
-rw-r--r--modules/profile/manifests/postgresql/backup_dump.pp2
-rw-r--r--modules/role/manifests/backup.pp6
2 files changed, 7 insertions, 1 deletions
diff --git a/modules/profile/manifests/postgresql/backup_dump.pp b/modules/profile/manifests/postgresql/backup_dump.pp
index 5f456ed..e247cf0 100644
--- a/modules/profile/manifests/postgresql/backup_dump.pp
+++ b/modules/profile/manifests/postgresql/backup_dump.pp
@@ -63,7 +63,7 @@ define profile::postgresql::backup_dump (
63 "naemon-postgresql-dumps-$pg_host" => "naemon ALL=($pg_user) NOPASSWD: /usr/bin/find $pg_backup_path -mindepth 1 -maxdepth 1 -printf %T@?n", 63 "naemon-postgresql-dumps-$pg_host" => "naemon ALL=($pg_user) NOPASSWD: /usr/bin/find $pg_backup_path -mindepth 1 -maxdepth 1 -printf %T@?n",
64 }, 64 },
65 local => { 65 local => {
66 check_command => "check_last_file_date!$pg_backup_path!10!$pg_user", 66 check_command => "check_last_file_date!$pg_backup_path!7!$pg_user",
67 } 67 }
68 } 68 }
69} 69}
diff --git a/modules/role/manifests/backup.pp b/modules/role/manifests/backup.pp
index c0672c6..6b8d00c 100644
--- a/modules/role/manifests/backup.pp
+++ b/modules/role/manifests/backup.pp
@@ -125,5 +125,11 @@ class role::backup (
125 order => "$order_dirname-$order_part", 125 order => "$order_dirname-$order_part",
126 } 126 }
127 } 127 }
128
129 @profile::monitoring::local_service { "Last backup in $base is not too old":
130 local => {
131 check_command => "check_last_file_date!$base!14",
132 }
133 }
128 } 134 }
129} 135}