Recommit for updates in build 193
This commit is contained in:
@@ -123,7 +123,7 @@ class confdroid_nagios::main::config (
|
|||||||
include confdroid_nagios::server::service
|
include confdroid_nagios::server::service
|
||||||
}
|
}
|
||||||
|
|
||||||
if $fqdn != $ng_nagios_server {
|
if $ng_enable_target == true {
|
||||||
include confdroid_nagios::client::target
|
include confdroid_nagios::client::target
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
|
|||||||
@@ -159,7 +159,23 @@
|
|||||||
61
|
61
|
||||||
62
|
62
|
||||||
63
|
63
|
||||||
64</pre>
|
64
|
||||||
|
65
|
||||||
|
66
|
||||||
|
67
|
||||||
|
68
|
||||||
|
69
|
||||||
|
70
|
||||||
|
71
|
||||||
|
72
|
||||||
|
73
|
||||||
|
74
|
||||||
|
75
|
||||||
|
76
|
||||||
|
77
|
||||||
|
78
|
||||||
|
79
|
||||||
|
80</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 6</span>
|
||||||
@@ -188,6 +204,23 @@ class confdroid_nagios::server::service (
|
|||||||
require => Exec['ng_restart_httpd'],
|
require => Exec['ng_restart_httpd'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@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],
|
||||||
|
}
|
||||||
|
|
||||||
resources { ['nagios_host',
|
resources { ['nagios_host',
|
||||||
'nagios_hostgroup',
|
'nagios_hostgroup',
|
||||||
'nagios_hostdependency',
|
'nagios_hostdependency',
|
||||||
@@ -220,7 +253,6 @@ class confdroid_nagios::server::service (
|
|||||||
Nagios_contactgroup <<||>> { notify => Service['nagios'] }
|
Nagios_contactgroup <<||>> { notify => Service['nagios'] }
|
||||||
Nagios_command <<||>> { notify => Service['nagios'] }
|
Nagios_command <<||>> { notify => Service['nagios'] }
|
||||||
Nagios_timeperiod <<||>> { notify => Service['nagios'] }
|
Nagios_timeperiod <<||>> { notify => Service['nagios'] }
|
||||||
|
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user