diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-08 21:51:30 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-10 10:26:39 +0200 |
commit | b5305b5cad5cbb0a2c072b29f2d4dc05126c39d4 (patch) | |
tree | 8fb1844be8b9e68d62ee2ede54c1bb39d27d4c30 /modules/profile/manifests/postgresql/backup_dump.pp | |
parent | 6962463657db999c33f1aabe60e0567be218918d (diff) | |
download | Puppet-b5305b5cad5cbb0a2c072b29f2d4dc05126c39d4.tar.gz Puppet-b5305b5cad5cbb0a2c072b29f2d4dc05126c39d4.tar.zst Puppet-b5305b5cad5cbb0a2c072b29f2d4dc05126c39d4.zip |
Add postgresql monitoring
Diffstat (limited to 'modules/profile/manifests/postgresql/backup_dump.pp')
-rw-r--r-- | modules/profile/manifests/postgresql/backup_dump.pp | 9 |
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 | } |