]>
Commit | Line | Data |
---|---|---|
d8f933bd | 1 | class profile::monitoring::services { |
d8f933bd | 2 | |
69624636 | 3 | profile::monitoring::local_service { |
d8f933bd | 4 | "Size on root partition": |
69624636 IB |
5 | local => { |
6 | check_command => "check_local_disk!20%!10%!/", | |
7 | }; | |
d8f933bd | 8 | "Total number of process": |
69624636 IB |
9 | local => { |
10 | check_command => "check_local_procs!50!100!RSZDT", | |
11 | }; | |
d8f933bd | 12 | "Average load": |
69624636 IB |
13 | local => { |
14 | check_command => "check_local_load!8.0,8.0,8.0!10.0,10.0,10.0", | |
15 | }; | |
d8f933bd | 16 | "Swap usage": |
69624636 IB |
17 | local => { |
18 | check_command => "check_local_swap!20!10", | |
19 | }; | |
d8f933bd | 20 | "fail2ban is active": |
b5305b5c IB |
21 | sudos => { |
22 | "naemon-fail2ban" => "naemon ALL=(root) NOPASSWD: /usr/bin/fail2ban-client ping", | |
23 | }, | |
24 | local => { | |
69624636 | 25 | check_command => "check_command_output!fail2ban-client ping!pong!-r root", |
69624636 | 26 | }; |
d8f933bd | 27 | "NTP is activated and working": |
69624636 IB |
28 | local => { |
29 | check_command => "check_ntp", | |
30 | }; | |
31 | "No mdadm array is degraded": | |
32 | common => { | |
33 | ensure => (find_file("/proc/mdstat") == undef) ? { true => "absent", default =>"present" }, | |
34 | }, | |
35 | local => { | |
36 | check_command => "check_md_raid", | |
37 | }; | |
d8f933bd | 38 | } |
b5305b5c IB |
39 | |
40 | Profile::Monitoring::Local_service <| |> | |
0cdf4940 | 41 | Profile::Monitoring::External_service <| |> |
d8f933bd | 42 | } |