Recommit for updates in build 13
This commit is contained in:
@@ -128,7 +128,7 @@ class confdroid_fail2ban::monitoring::target (
|
||||
) inherits confdroid_fail2ban::params {
|
||||
if $fn_incl_target == true {
|
||||
@@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',
|
||||
host_name => $fqdn,
|
||||
notification_period => '24x7',
|
||||
|
||||
@@ -869,6 +869,24 @@
|
||||
—
|
||||
<div class='inline'>
|
||||
<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>
|
||||
|
||||
</li>
|
||||
@@ -884,9 +902,6 @@
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
110
|
||||
111
|
||||
112
|
||||
113
|
||||
114
|
||||
115
|
||||
@@ -976,10 +991,14 @@
|
||||
199
|
||||
200
|
||||
201
|
||||
202</pre>
|
||||
202
|
||||
203
|
||||
204
|
||||
205
|
||||
206</pre>
|
||||
</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 (
|
||||
|
||||
@@ -1039,6 +1058,7 @@ class confdroid_fail2ban::params (
|
||||
Boolean $fn_incl_target = false,
|
||||
String $fn_target_service = '/etc/nagios/conf.d/fail2ban_service.cfg',
|
||||
String $fn_target_contacts = 'nagiosadmin',
|
||||
String $fn_procs_allowed = '1:1',
|
||||
|
||||
) {
|
||||
# shortcuts
|
||||
|
||||
Reference in New Issue
Block a user