1 class profile::monitoring::services {
7 notify => Service["naemon"],
8 before => Service["naemon"],
9 require => File["/etc/naemon"],
14 sudo_file_name => "naemon";
16 content => "naemon ALL=(root) NOPASSWD: /usr/bin/fail2ban-client ping";
19 profile::monitoring::local_service {
20 "Size on root partition":
22 check_command => "check_local_disk!20%!10%!/",
24 "Total number of process":
26 check_command => "check_local_procs!50!100!RSZDT",
30 check_command => "check_local_load!8.0,8.0,8.0!10.0,10.0,10.0",
34 check_command => "check_local_swap!20!10",
38 check_command => "check_command_output!fail2ban-client ping!pong!-r root",
39 require => Sudo::Conf["naemon-fail2ban"],
41 "NTP is activated and working":
43 check_command => "check_ntp",
45 "No mdadm array is degraded":
47 ensure => (find_file("/proc/mdstat") == undef) ? { true => "absent", default =>"present" },
50 check_command => "check_md_raid",