ignore normal "Server ready" startup message from fail2ban

Resolves: RHEL-83940
This commit is contained in:
Lukáš Zaoral 2026-02-04 16:44:11 +01:00
parent b8f4bb4d64
commit a64be72eaa
No known key found for this signature in database
GPG Key ID: 39157506DD67752D
2 changed files with 15 additions and 0 deletions

13
ignore-server-ready.patch Normal file
View File

@ -0,0 +1,13 @@
--- a/scripts/services/fail2ban
+++ b/scripts/services/fail2ban
@@ -91,7 +91,8 @@
($ThisLine =~ /INFO\s+(Stopping all jails|Exiting Fail2ban)/) or
($ThisLine =~ /INFO\s+Initiated '.*' backend/) or
($ThisLine =~ /INFO\s+(Added logfile = .*|Set maxRetry = \d+|Set findtime = \d+|Set banTime = \d+)/) or
- ($ThisLine =~ /Unable to find a corresponding IP address for .*: \[Errno -2\] Name or service not known/)
+ ($ThisLine =~ /Unable to find a corresponding IP address for .*: \[Errno -2\] Name or service not known/) or
+ ($ThisLine =~ /: Server ready$/)
)
{
if ( $Debug >= 6 ) {

View File

@ -12,6 +12,7 @@ Patch1: systemd-deactivated.patch
Patch2: sshd-sort-by-count.patch
Patch3: zstd-log-support.patch
Patch4: logwatch-add-support-for-chronyd.patch
Patch5: ignore-server-ready.patch
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires: perl-generators
BuildRequires: systemd-rpm-macros
@ -138,6 +139,7 @@ echo "# Configuration overrides for specific logfiles/services may be placed her
%changelog
* Wed Feb 04 2026 Lukáš Zaoral <lzaoral@redhat.com> - 7.5.5-10
- add support for chronyd (RHEL-36757)
- ignore normal "Server ready" startup message from fail2ban (RHEL-83940)
* Thu Jan 08 2026 Vincent Mihalkovic <vmihalko@redhat.com> - 7.5.5-9
- Install and use systemd-tmpfiles.d mechanism