1 class profile::monitoring::services {
3 profile::monitoring::local_service {
4 "Size on root partition":
6 check_command => "check_local_disk!20%!10%!/",
8 "Total number of process":
10 check_command => "check_local_procs!50!100!RSZDT",
14 check_command => "check_local_load!8.0,8.0,8.0!10.0,10.0,10.0",
18 check_command => "check_local_swap!20!10",
22 "naemon-fail2ban" => "naemon ALL=(root) NOPASSWD: /usr/bin/fail2ban-client ping",
25 check_command => "check_command_output!fail2ban-client ping!pong!-r root",
27 "NTP is activated and working":
29 check_command => "check_ntp",
31 "No mdadm array is degraded":
33 ensure => (find_file("/proc/mdstat") == undef) ? { true => "absent", default =>"present" },
36 check_command => "check_md_raid",
40 Profile::Monitoring::Local_service <| |>
41 Profile::Monitoring::External_service <| |>