Recommit for updates in build 221
This commit is contained in:
@@ -267,7 +267,24 @@
|
||||
169
|
||||
170
|
||||
171
|
||||
172</pre>
|
||||
172
|
||||
173
|
||||
174
|
||||
175
|
||||
176
|
||||
177
|
||||
178
|
||||
179
|
||||
180
|
||||
181
|
||||
182
|
||||
183
|
||||
184
|
||||
185
|
||||
186
|
||||
187
|
||||
188
|
||||
189</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/server/nagios.pp', line 6</span>
|
||||
@@ -276,6 +293,23 @@ class confdroid_nagios::server::nagios (
|
||||
|
||||
) inherits confdroid_nagios::params {
|
||||
if $ng_nagios_server == $fqdn {
|
||||
@@nagios_host { "localhost_${fqdn}":
|
||||
ensure => $ng_ping_ensure,
|
||||
alias => 'localhost',
|
||||
address => '127.0.0.1',
|
||||
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_host { $fqdn:
|
||||
ensure => $ng_ping_ensure,
|
||||
alias => 'nag001',
|
||||
|
||||
Reference in New Issue
Block a user