diff --git a/ChangeLog b/ChangeLog index 1e5ab543..42d357fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,8 @@ ver. 0.8.12 (2013/12/XX) - things-can-only-get-better Closes gh-516 - Asynchat changed to use push method which verifys whether all data was send. This ensures that all data is sent before closing the connection. + - Removed unnecessary reference to as yet undeclared $jail_name when checking + a specific jail. - Enhancements: - added firewallcmd-ipset action diff --git a/files/nagios/check_fail2ban b/files/nagios/check_fail2ban index 9bf14305..fc88e654 100755 --- a/files/nagios/check_fail2ban +++ b/files/nagios/check_fail2ban @@ -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