"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!7!$pg_user",
}
}
}
order => "$order_dirname-$order_part",
}
}
+
+ @profile::monitoring::local_service { "Last backup in $base is not too old":
+ local => {
+ check_command => "check_last_file_date!$base!14",
+ }
+ }
}
}
- Add some monitoring:
- modules/profile/manifests/postgresql/ssl.pp (check postgresql certificate)
- modules/profile/manifests/postgresql/backup\_pgbouncer.pp (check pgbouncer works)
- - modules/profile/manifests/apache.pp (check website is accessible and ssl)
- modules/profile/manifests/mail.pp (check e-mails are going through)
- modules/profile/manifests/redis.pp (check redis is running)
- - modules/role/\* (role-specific checks)
+ - modules/role/manifests/cryptoportfolio (role-specific checks)
- Add redis replication and dumps
- Restore backups for cryptoportfolio
- Ensure latest by default for packages