Recommit for updates in build 13
This commit is contained in:
@@ -128,7 +128,7 @@ class confdroid_fail2ban::monitoring::target (
|
|||||||
) inherits confdroid_fail2ban::params {
|
) inherits confdroid_fail2ban::params {
|
||||||
if $fn_incl_target == true {
|
if $fn_incl_target == true {
|
||||||
@@nagios_service { "check_fail2ban_${fqdn}":
|
@@nagios_service { "check_fail2ban_${fqdn}":
|
||||||
check_command => 'check_nrpe!check_fail2ban!1:1!fail2ban-server',
|
check_command => "check_nrpe!check_fail2ban!${fn_procs_allowed}!fail2ban-server",
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
host_name => $fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
|
|||||||
@@ -869,6 +869,24 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>The nagios contacts to be notified for the service if fn_incl_target is set to true.</p>
|
<p>The nagios contacts to be notified for the service if fn_incl_target is set to true.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>fn_procs_allowed</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'1:1'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>The allowed number of fail2ban processes for the nagios check. Default is ‘1:1’, which means exactly one process should be running.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -884,9 +902,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
110
|
|
||||||
111
|
|
||||||
112
|
|
||||||
113
|
113
|
||||||
114
|
114
|
||||||
115
|
115
|
||||||
@@ -976,10 +991,14 @@
|
|||||||
199
|
199
|
||||||
200
|
200
|
||||||
201
|
201
|
||||||
202</pre>
|
202
|
||||||
|
203
|
||||||
|
204
|
||||||
|
205
|
||||||
|
206</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 110</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 113</span>
|
||||||
|
|
||||||
class confdroid_fail2ban::params (
|
class confdroid_fail2ban::params (
|
||||||
|
|
||||||
@@ -1039,6 +1058,7 @@ class confdroid_fail2ban::params (
|
|||||||
Boolean $fn_incl_target = false,
|
Boolean $fn_incl_target = false,
|
||||||
String $fn_target_service = '/etc/nagios/conf.d/fail2ban_service.cfg',
|
String $fn_target_service = '/etc/nagios/conf.d/fail2ban_service.cfg',
|
||||||
String $fn_target_contacts = 'nagiosadmin',
|
String $fn_target_contacts = 'nagiosadmin',
|
||||||
|
String $fn_procs_allowed = '1:1',
|
||||||
|
|
||||||
) {
|
) {
|
||||||
# shortcuts
|
# shortcuts
|
||||||
|
|||||||
Reference in New Issue
Block a user