Recommit for updates in build 9
This commit is contained in:
@@ -134,12 +134,12 @@ class confdroid_apache::monitoring::target (
|
|||||||
false: { notify { 'Nagios Service target for check_httpd has been disabled via parameters / ENC override': }
|
false: { notify { 'Nagios Service target for check_httpd has been disabled via parameters / ENC override': }
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
@@nagios_service { "check_http_${::hostname}":
|
@@nagios_service { "check_http_${fqdn}":
|
||||||
check_command => 'check_http',
|
check_command => 'check_http',
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
host_name => $::fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
service_description => "${::hostname}_check_http",
|
service_description => "${fqdn}_check_http",
|
||||||
target => $ae_target_service,
|
target => $ae_target_service,
|
||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ inherited by all classes except defines.
|
|||||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
—
|
—
|
||||||
@@ -488,7 +488,13 @@ inherited by all classes except defines.
|
|||||||
99
|
99
|
||||||
100
|
100
|
||||||
101
|
101
|
||||||
102</pre>
|
102
|
||||||
|
103
|
||||||
|
104
|
||||||
|
105
|
||||||
|
106
|
||||||
|
107
|
||||||
|
108</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 46</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 46</span>
|
||||||
@@ -505,7 +511,7 @@ class confdroid_apache::params (
|
|||||||
Boolean $ae_allow_user_dirs = false,
|
Boolean $ae_allow_user_dirs = false,
|
||||||
|
|
||||||
# nagios
|
# nagios
|
||||||
Boolean $ae_incl_target = true,
|
Boolean $ae_incl_target = false,
|
||||||
String $ae_target_service = '/etc/nagios/conf.d/httpd_service.cfg',
|
String $ae_target_service = '/etc/nagios/conf.d/httpd_service.cfg',
|
||||||
|
|
||||||
# firewall
|
# firewall
|
||||||
@@ -515,6 +521,12 @@ class confdroid_apache::params (
|
|||||||
String $ae_https_port = '443',
|
String $ae_https_port = '443',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
# facts
|
||||||
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
$domain = $facts['networking']['domain']
|
||||||
|
$os_name = $facts['os']['name']
|
||||||
|
$os_release = $facts['os']['release']['major']
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$ae_service = 'httpd'
|
$ae_service = 'httpd'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user