Recommit for updates in build 100
This commit is contained in:
@@ -105,7 +105,120 @@
|
|||||||
7
|
7
|
||||||
8
|
8
|
||||||
9
|
9
|
||||||
10</pre>
|
10
|
||||||
|
11
|
||||||
|
12
|
||||||
|
13
|
||||||
|
14
|
||||||
|
15
|
||||||
|
16
|
||||||
|
17
|
||||||
|
18
|
||||||
|
19
|
||||||
|
20
|
||||||
|
21
|
||||||
|
22
|
||||||
|
23
|
||||||
|
24
|
||||||
|
25
|
||||||
|
26
|
||||||
|
27
|
||||||
|
28
|
||||||
|
29
|
||||||
|
30
|
||||||
|
31
|
||||||
|
32
|
||||||
|
33
|
||||||
|
34
|
||||||
|
35
|
||||||
|
36
|
||||||
|
37
|
||||||
|
38
|
||||||
|
39
|
||||||
|
40
|
||||||
|
41
|
||||||
|
42
|
||||||
|
43
|
||||||
|
44
|
||||||
|
45
|
||||||
|
46
|
||||||
|
47
|
||||||
|
48
|
||||||
|
49
|
||||||
|
50
|
||||||
|
51
|
||||||
|
52
|
||||||
|
53
|
||||||
|
54
|
||||||
|
55
|
||||||
|
56
|
||||||
|
57
|
||||||
|
58
|
||||||
|
59
|
||||||
|
60
|
||||||
|
61
|
||||||
|
62
|
||||||
|
63
|
||||||
|
64
|
||||||
|
65
|
||||||
|
66
|
||||||
|
67
|
||||||
|
68
|
||||||
|
69
|
||||||
|
70
|
||||||
|
71
|
||||||
|
72
|
||||||
|
73
|
||||||
|
74
|
||||||
|
75
|
||||||
|
76
|
||||||
|
77
|
||||||
|
78
|
||||||
|
79
|
||||||
|
80
|
||||||
|
81
|
||||||
|
82
|
||||||
|
83
|
||||||
|
84
|
||||||
|
85
|
||||||
|
86
|
||||||
|
87
|
||||||
|
88
|
||||||
|
89
|
||||||
|
90
|
||||||
|
91
|
||||||
|
92
|
||||||
|
93
|
||||||
|
94
|
||||||
|
95
|
||||||
|
96
|
||||||
|
97
|
||||||
|
98
|
||||||
|
99
|
||||||
|
100
|
||||||
|
101
|
||||||
|
102
|
||||||
|
103
|
||||||
|
104
|
||||||
|
105
|
||||||
|
106
|
||||||
|
107
|
||||||
|
108
|
||||||
|
109
|
||||||
|
110
|
||||||
|
111
|
||||||
|
112
|
||||||
|
113
|
||||||
|
114
|
||||||
|
115
|
||||||
|
116
|
||||||
|
117
|
||||||
|
118
|
||||||
|
119
|
||||||
|
120
|
||||||
|
121
|
||||||
|
122
|
||||||
|
123</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/client/target.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/client/target.pp', line 6</span>
|
||||||
@@ -113,7 +226,120 @@
|
|||||||
class confdroid_nagios::client::target (
|
class confdroid_nagios::client::target (
|
||||||
|
|
||||||
) inherits confdroid_nagios::params {
|
) inherits confdroid_nagios::params {
|
||||||
# Manage target configuration here
|
if $ng_nagios_server == $fqdn {
|
||||||
|
if $ng_include_nrpe == true {
|
||||||
|
require cd_nrpe
|
||||||
|
|
||||||
|
@@nagios_host { $fqdn:
|
||||||
|
ensure => $ng_ping_ensure,
|
||||||
|
alias => $fqdn,
|
||||||
|
address => $fqdn,
|
||||||
|
use => 'linux-server',
|
||||||
|
target => $ng_target_host,
|
||||||
|
hostgroups => 'linux-servers',
|
||||||
|
contacts => 'ops',
|
||||||
|
max_check_attempts => $ng_max_check_attempts,
|
||||||
|
notification_period => '24x7',
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
|
||||||
|
notify => Service[$ng_nagios_service],
|
||||||
|
}
|
||||||
|
|
||||||
|
@@nagios_service { "root_partition_${fqdn}":
|
||||||
|
ensure => $ng_disk_ensure,
|
||||||
|
check_command => "check_nrpe!check_disk!${ng_disk_warn}!${ng_disk_crit}!/",
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
contacts => 'ops',
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_root_partition",
|
||||||
|
servicegroups => 'linux-services',
|
||||||
|
target => $ng_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
}
|
||||||
|
|
||||||
|
if $ng_enable_swap_check == true {
|
||||||
|
@@nagios_service { "Swap_Usage_${fqdn}":
|
||||||
|
ensure => $ng_swap_ensure,
|
||||||
|
check_command => "check_nrpe!check_swap!${ng_swap_warn}!${ng_swap_crit}",
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
contacts => 'ops',
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_swap_usage",
|
||||||
|
servicegroups => 'linux-services',
|
||||||
|
target => $ng_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@nagios_service { "Local_Users_${fqdn}":
|
||||||
|
ensure => $ng_users_ensure,
|
||||||
|
check_command => "check_nrpe!check_users!${ng_users_warn}!${ng_users_crit}",
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
contacts => 'ops',
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_local_users",
|
||||||
|
servicegroups => 'linux-services',
|
||||||
|
target => $ng_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
}
|
||||||
|
|
||||||
|
@@nagios_service { "Total Processes_${fqdn}":
|
||||||
|
ensure => $ng_procs_tot_ens,
|
||||||
|
check_command => "check_nrpe!check_procs!${ng_procs_tot_warn}!${ng_procs_tot_crit}!${ng_procs_tot_param}",
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
contacts => 'ops',
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_total_processes",
|
||||||
|
servicegroups => 'linux-services',
|
||||||
|
target => $ng_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
}
|
||||||
|
|
||||||
|
@@nagios_service { "Zombie Processes_${fqdn}":
|
||||||
|
ensure => $ng_procs_z_ensure,
|
||||||
|
check_command => "check_nrpe!check_procs!${ng_procs_z_warn}!${ng_procs_z_crit}!${ng_procs_z_param}",
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
contacts => 'ops',
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_zombie_processes",
|
||||||
|
servicegroups => 'linux-services',
|
||||||
|
target => $ng_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
}
|
||||||
|
|
||||||
|
@@nagios_service { "Current_Load_${fqdn}":
|
||||||
|
ensure => $ng_load_ensure,
|
||||||
|
check_command => "check_nrpe!check_load!${ng_load_warn}!${ng_load_crit}",
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
contacts => 'ops',
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_current_load",
|
||||||
|
servicegroups => 'linux-services',
|
||||||
|
target => $ng_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user