aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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}