Recommit for updates in build 194
This commit is contained in:
@@ -222,7 +222,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_nagios_server != $fqdn) and ($ng_enable_target == true) {
|
||||||
@@nagios_host { $fqdn:
|
@@nagios_host { $fqdn:
|
||||||
ensure => $ng_ping_ensure,
|
ensure => $ng_ping_ensure,
|
||||||
alias => $hostname,
|
alias => $hostname,
|
||||||
|
|||||||
@@ -218,23 +218,7 @@
|
|||||||
120
|
120
|
||||||
121
|
121
|
||||||
122
|
122
|
||||||
123
|
123</pre>
|
||||||
124
|
|
||||||
125
|
|
||||||
126
|
|
||||||
127
|
|
||||||
128
|
|
||||||
129
|
|
||||||
130
|
|
||||||
131
|
|
||||||
132
|
|
||||||
133
|
|
||||||
134
|
|
||||||
135
|
|
||||||
136
|
|
||||||
137
|
|
||||||
138
|
|
||||||
139</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>
|
||||||
@@ -243,22 +227,6 @@ 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':
|
|
||||||
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_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