X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprofile%2Fmanifests%2Fpostgresql%2Fbackup_dump.pp;fp=modules%2Fprofile%2Fmanifests%2Fpostgresql%2Fbackup_dump.pp;h=5f456ed37060bd4393caf7dd05aabe813623e66f;hb=bff7d1b743bc2239d7ce7ced37dd03e4e846c03d;hp=5e469c5c213c893afef1fb8cd1164c26155e080e;hpb=a0df248a2be61557b8a67c3d6e4df24dc3e7843e;p=perso%2FImmae%2FProjets%2FPuppet.git 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 ( @profile::monitoring::local_service { "Last postgresql dump in $pg_backup_path is not too old": sudos => { - "naemon-postgresql-dumps" => "naemon ALL=($pg_user) NOPASSWD: /usr/bin/find $pg_backup_path -mindepth 1 -maxdepth 1 -printf %T@\\n", - } + "naemon-postgresql-dumps-$pg_host" => "naemon ALL=($pg_user) NOPASSWD: /usr/bin/find $pg_backup_path -mindepth 1 -maxdepth 1 -printf %T@?n", + }, local => { - check_command => "check_last_file_date!$pg_backup_path!10!$pg_user" + check_command => "check_last_file_date!$pg_backup_path!10!$pg_user", } } }