Recommit for updates in build 35
This commit is contained in:
@@ -119,7 +119,7 @@
|
|||||||
</li><li>
|
</li><li>
|
||||||
<p>manage firewall settings (optional)</p>
|
<p>manage firewall settings (optional)</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage nagios monitoring (optional)</p>
|
<p>manage nagios monitoring for the service (optional)</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<p>Maintenance</p>
|
<p>Maintenance</p>
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
</li><li>
|
</li><li>
|
||||||
<p>manage firewall settings (optional)</p>
|
<p>manage firewall settings (optional)</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage nagios monitoring (optional)</p>
|
<p>manage nagios monitoring for the service (optional)</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<p>Maintenance</p>
|
<p>Maintenance</p>
|
||||||
|
|||||||
@@ -118,11 +118,7 @@
|
|||||||
20
|
20
|
||||||
21
|
21
|
||||||
22
|
22
|
||||||
23
|
23</pre>
|
||||||
24
|
|
||||||
25
|
|
||||||
26
|
|
||||||
27</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/monitoring/target.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/monitoring/target.pp', line 6</span>
|
||||||
@@ -130,22 +126,18 @@
|
|||||||
class confdroid_apache::monitoring::target (
|
class confdroid_apache::monitoring::target (
|
||||||
|
|
||||||
) inherits confdroid_apache::params {
|
) inherits confdroid_apache::params {
|
||||||
case $ae_incl_target {
|
if $ae_incl_target == true {
|
||||||
false: { notify { 'Nagios Service target for check_httpd has been disabled via parameters / ENC override': }
|
@@nagios_service { "check_http_${fqdn}":
|
||||||
}
|
check_command => 'check_http',
|
||||||
default: {
|
use => 'generic-service',
|
||||||
@@nagios_service { "check_http_${fqdn}":
|
host_name => $fqdn,
|
||||||
check_command => 'check_http',
|
notification_period => '24x7',
|
||||||
use => 'generic-service',
|
service_description => "${fqdn}_check_http",
|
||||||
host_name => $fqdn,
|
target => $ae_target_service,
|
||||||
notification_period => '24x7',
|
owner => 'nagios',
|
||||||
service_description => "${fqdn}_check_http",
|
group => 'nagios',
|
||||||
target => $ae_target_service,
|
mode => '0640',
|
||||||
owner => 'nagios',
|
contacts => 'ops',
|
||||||
group => 'nagios',
|
|
||||||
mode => '0640',
|
|
||||||
contacts => 'ops',
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
|
|||||||
Reference in New Issue
Block a user