diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-10 10:45:04 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 08:02:15 +0200 |
commit | bff7d1b743bc2239d7ce7ced37dd03e4e846c03d (patch) | |
tree | e8f46c07837c1c44c599673072fe34d55c767683 /modules/profile/manifests/postgresql/backup_dump.pp | |
parent | a0df248a2be61557b8a67c3d6e4df24dc3e7843e (diff) | |
download | Puppet-bff7d1b743bc2239d7ce7ced37dd03e4e846c03d.tar.gz Puppet-bff7d1b743bc2239d7ce7ced37dd03e4e846c03d.tar.zst Puppet-bff7d1b743bc2239d7ce7ced37dd03e4e846c03d.zip |
Add monitoring for backup
Diffstat (limited to 'modules/profile/manifests/postgresql/backup_dump.pp')
-rw-r--r-- | modules/profile/manifests/postgresql/backup_dump.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/profile/manifests/postgresql/backup_dump.pp b/modules/profile/manifests/postgresql/backup_dump.pp index 5e469c5..5f456ed 100644 --- a/modules/profile/manifests/postgresql/backup_dump.pp +++ b/modules/profile/manifests/postgresql/backup_dump.pp | |||
@@ -60,10 +60,10 @@ define profile::postgresql::backup_dump ( | |||
60 | 60 | ||
61 | @profile::monitoring::local_service { "Last postgresql dump in $pg_backup_path is not too old": | 61 | @profile::monitoring::local_service { "Last postgresql dump in $pg_backup_path is not too old": |
62 | sudos => { | 62 | sudos => { |
63 | "naemon-postgresql-dumps" => "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!10!$pg_user", |
67 | } | 67 | } |
68 | } | 68 | } |
69 | } | 69 | } |