Recommit for updates in build 210
This commit is contained in:
@@ -231,7 +231,7 @@
|
|||||||
class confdroid_nagios::client::target (
|
class confdroid_nagios::client::target (
|
||||||
|
|
||||||
) inherits confdroid_nagios::params {
|
) inherits confdroid_nagios::params {
|
||||||
if ($ng_nagios_server != $fqdn) and ($ng_enable_target == true) {
|
if $ng_enable_target == true {
|
||||||
package { $ng_reqpackages_client:
|
package { $ng_reqpackages_client:
|
||||||
ensure => $ng_pkg_ensure,
|
ensure => $ng_pkg_ensure,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -267,24 +267,7 @@
|
|||||||
169
|
169
|
||||||
170
|
170
|
||||||
171
|
171
|
||||||
172
|
172</pre>
|
||||||
173
|
|
||||||
174
|
|
||||||
175
|
|
||||||
176
|
|
||||||
177
|
|
||||||
178
|
|
||||||
179
|
|
||||||
180
|
|
||||||
181
|
|
||||||
182
|
|
||||||
183
|
|
||||||
184
|
|
||||||
185
|
|
||||||
186
|
|
||||||
187
|
|
||||||
188
|
|
||||||
189</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/server/nagios.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/server/nagios.pp', line 6</span>
|
||||||
@@ -310,23 +293,6 @@ class confdroid_nagios::server::nagios (
|
|||||||
notify => Service[$ng_service],
|
notify => Service[$ng_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
@@nagios_host { $fqdn:
|
|
||||||
ensure => $ng_ping_ensure,
|
|
||||||
alias => $hostname,
|
|
||||||
address => $fqdn,
|
|
||||||
use => 'linux-server',
|
|
||||||
target => $ng_target_localhost,
|
|
||||||
hostgroups => 'linux-servers',
|
|
||||||
contacts => $ng_contact_name,
|
|
||||||
max_check_attempts => $ng_max_check_attempts,
|
|
||||||
notification_period => '24x7',
|
|
||||||
owner => $ng_user,
|
|
||||||
group => $ng_user,
|
|
||||||
mode => '0640',
|
|
||||||
check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
|
|
||||||
notify => Service[$ng_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
@@nagios_service { 'check_nagios_localhost':
|
@@nagios_service { 'check_nagios_localhost':
|
||||||
check_command => "check_nagios!${ng_spool_dir}/status.dat!5!/usr/sbin/nagios",
|
check_command => "check_nagios!${ng_spool_dir}/status.dat!5!/usr/sbin/nagios",
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
|
|||||||
Reference in New Issue
Block a user