diff options
Diffstat (limited to 'modules/profile/manifests/monitoring/services.pp')
-rw-r--r-- | modules/profile/manifests/monitoring/services.pp | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/modules/profile/manifests/monitoring/services.pp b/modules/profile/manifests/monitoring/services.pp index 6e59ab1..b20a352 100644 --- a/modules/profile/manifests/monitoring/services.pp +++ b/modules/profile/manifests/monitoring/services.pp | |||
@@ -1,21 +1,5 @@ | |||
1 | class profile::monitoring::services { | 1 | class profile::monitoring::services { |
2 | 2 | ||
3 | Nagios_service { | ||
4 | ensure => "present", | ||
5 | owner => "naemon", | ||
6 | group => "naemon", | ||
7 | notify => Service["naemon"], | ||
8 | before => Service["naemon"], | ||
9 | require => File["/etc/naemon"], | ||
10 | } | ||
11 | |||
12 | sudo::conf { | ||
13 | default: | ||
14 | sudo_file_name => "naemon"; | ||
15 | 'naemon-fail2ban': | ||
16 | content => "naemon ALL=(root) NOPASSWD: /usr/bin/fail2ban-client ping"; | ||
17 | } | ||
18 | |||
19 | profile::monitoring::local_service { | 3 | profile::monitoring::local_service { |
20 | "Size on root partition": | 4 | "Size on root partition": |
21 | local => { | 5 | local => { |
@@ -34,9 +18,11 @@ class profile::monitoring::services { | |||
34 | check_command => "check_local_swap!20!10", | 18 | check_command => "check_local_swap!20!10", |
35 | }; | 19 | }; |
36 | "fail2ban is active": | 20 | "fail2ban is active": |
37 | local => { | 21 | sudos => { |
22 | "naemon-fail2ban" => "naemon ALL=(root) NOPASSWD: /usr/bin/fail2ban-client ping", | ||
23 | }, | ||
24 | local => { | ||
38 | check_command => "check_command_output!fail2ban-client ping!pong!-r root", | 25 | check_command => "check_command_output!fail2ban-client ping!pong!-r root", |
39 | require => Sudo::Conf["naemon-fail2ban"], | ||
40 | }; | 26 | }; |
41 | "NTP is activated and working": | 27 | "NTP is activated and working": |
42 | local => { | 28 | local => { |
@@ -50,4 +36,6 @@ class profile::monitoring::services { | |||
50 | check_command => "check_md_raid", | 36 | check_command => "check_md_raid", |
51 | }; | 37 | }; |
52 | } | 38 | } |
39 | |||
40 | Profile::Monitoring::Local_service <| |> | ||
53 | } | 41 | } |