},
]
}
+
+ @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",
+ }
+ local => {
+ check_command => "check_last_file_date!$pg_backup_path!10!$pg_user"
+ }
+ }
}