device => "UUID=${infos[1]}",
fstype => $infos[2]
}
+
+ @profile::monitoring::local_service { "Size on ${infos[0]} partition":
+ local => {
+ check_command => "check_local_disk!10%!5%!${infos[0]}",
+ };
+ }
}
}
}
})
$sudos.each |$sudo_name, $content| {
- sudo::conf { $sudo_name:
- content => $content,
- before => Nagios_service[$service_description],
- }
+ ensure_resource("sudo::conf", $sudo_name, {
+ content => $content,
+ before => Nagios_service[$service_description],
+ })
}
[true, false].each |$services_for_master| {
@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",
}
}
}
include "profile::xmr_stak"
include "profile::known_hosts"
include "profile::boinc"
+ include "profile::monitoring"
include "role::backup::postgresql"