Recommit for updates in build 13

This commit is contained in:
Jenkins Server
2026-03-12 12:34:19 +01:00
parent dda19b806c
commit fe0d5707d9
2 changed files with 26 additions and 6 deletions

View File

@@ -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',

View File

@@ -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>&#39;1:1&#39;</tt>)</em>
&mdash;
<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 = &#39;/etc/nagios/conf.d/fail2ban_service.cfg&#39;,
String $fn_target_contacts = &#39;nagiosadmin&#39;,
String $fn_procs_allowed = &#39;1:1&#39;,
) {
# shortcuts