|
|
|
@ -108,6 +108,7 @@ my ($critical,$warning) = (2,1);
|
|
|
|
|
my $fail2ban_client_path = '/usr/bin/fail2ban-client';
|
|
|
|
|
my $fail2ban_socket = '';
|
|
|
|
|
my $jail_specific = '';
|
|
|
|
|
my $jail_name = '';
|
|
|
|
|
|
|
|
|
|
GetOptions (
|
|
|
|
|
'P=s' => \ $fail2ban_client_path,
|
|
|
|
@ -190,7 +191,7 @@ if ($jail_specific) {
|
|
|
|
|
else {
|
|
|
|
|
$how_many_banned = int($current_ban_number);
|
|
|
|
|
$return_print = $how_many_banned.' current banned IP(s) for the specific jail '.$jail_specific;
|
|
|
|
|
$perf_print .= "$jail_name.currentBannedIP=$current_ban_number " if ($perfdata_value);
|
|
|
|
|
$perf_print .= "$current_ban_number " if ($perfdata_value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
### To analyze all the jail
|
|
|
|
|