aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/postgresql/backup_dump.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile/manifests/postgresql/backup_dump.pp')
-rw-r--r--modules/profile/manifests/postgresql/backup_dump.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/profile/manifests/postgresql/backup_dump.pp b/modules/profile/manifests/postgresql/backup_dump.pp
index 53fb20e..5e469c5 100644
--- a/modules/profile/manifests/postgresql/backup_dump.pp
+++ b/modules/profile/manifests/postgresql/backup_dump.pp
@@ -57,4 +57,13 @@ define profile::postgresql::backup_dump (
57 }, 57 },
58 ] 58 ]
59 } 59 }
60
61 @profile::monitoring::local_service { "Last postgresql dump in $pg_backup_path is not too old":
62 sudos => {
63 "naemon-postgresql-dumps" => "naemon ALL=($pg_user) NOPASSWD: /usr/bin/find $pg_backup_path -mindepth 1 -maxdepth 1 -printf %T@\\n",
64 }
65 local => {
66 check_command => "check_last_file_date!$pg_backup_path!10!$pg_user"
67 }
68 }
60} 69}