Recommit for updates in build 183
This commit is contained in:
@@ -145,7 +145,8 @@ additional servicegroups through external Puppet rules via define.
|
|||||||
41
|
41
|
||||||
42
|
42
|
||||||
43
|
43
|
||||||
44</pre>
|
44
|
||||||
|
45</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_servicegroup_rules.pp', line 12</span>
|
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_servicegroup_rules.pp', line 12</span>
|
||||||
@@ -176,6 +177,7 @@ class confdroid_nagios::nagios::objects::add_servicegroup_rules (
|
|||||||
content => template($ng_tgt_svcgrp_head_erb),
|
content => template($ng_tgt_svcgrp_head_erb),
|
||||||
order => '000',
|
order => '000',
|
||||||
}
|
}
|
||||||
|
|
||||||
# add default servicegroup rules through defines and parameters
|
# add default servicegroup rules through defines and parameters
|
||||||
confdroid_nagios::nagios::objects::add_servicegroups { $ng_servicegroup_name:
|
confdroid_nagios::nagios::objects::add_servicegroups { $ng_servicegroup_name:
|
||||||
ng_servicegroup_name => $ng_servicegroup_name,
|
ng_servicegroup_name => $ng_servicegroup_name,
|
||||||
|
|||||||
@@ -276,22 +276,22 @@ class confdroid_nagios::server::nagios (
|
|||||||
|
|
||||||
) inherits confdroid_nagios::params {
|
) inherits confdroid_nagios::params {
|
||||||
if $ng_nagios_server == $fqdn {
|
if $ng_nagios_server == $fqdn {
|
||||||
@@nagios_host { 'localhost':
|
# @@nagios_host { 'localhost':
|
||||||
ensure => $ng_ping_ensure,
|
# ensure => $ng_ping_ensure,
|
||||||
alias => 'localhost',
|
# alias => 'localhost',
|
||||||
address => '127.0.0.1',
|
# address => '127.0.0.1',
|
||||||
use => 'linux-server',
|
# use => 'linux-server',
|
||||||
target => $ng_target_localhost,
|
# target => $ng_target_localhost,
|
||||||
hostgroups => 'linux-servers',
|
# hostgroups => 'linux-servers',
|
||||||
contacts => $ng_contact_name,
|
# contacts => $ng_contact_name,
|
||||||
max_check_attempts => $ng_max_check_attempts,
|
# max_check_attempts => $ng_max_check_attempts,
|
||||||
notification_period => '24x7',
|
# notification_period => '24x7',
|
||||||
owner => $ng_user,
|
# owner => $ng_user,
|
||||||
group => $ng_user,
|
# group => $ng_user,
|
||||||
mode => '0640',
|
# mode => '0640',
|
||||||
check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
|
# check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
|
||||||
notify => Service[$ng_service],
|
# 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",
|
||||||
|
|||||||
Reference in New Issue
Block a user