From 9c58dc3dd05e15a0711bef739f06f571e1fd0a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imovec?= Date: Tue, 27 Jun 2023 17:57:45 +0200 Subject: [PATCH] do not treat "RAS: Correctable Errors collector initialized" message as an error --- logwatch.spec | 8 +++++++- ras-correctable-errors.patch | 11 +++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ras-correctable-errors.patch diff --git a/logwatch.spec b/logwatch.spec index 3846421..fac6b81 100644 --- a/logwatch.spec +++ b/logwatch.spec @@ -1,7 +1,7 @@ Summary: A log file analysis program Name: logwatch Version: 7.4.3 -Release: 16%{?dist} +Release: 17%{?dist} License: MIT Group: Applications/System URL: http://www.logwatch.org/ @@ -29,6 +29,7 @@ Patch10: logwatch-failed-login.patch Patch11: systemd-noise-filter.patch Patch12: auditd-startup-messages.patch Patch13: ignore-server-ready.patch +Patch14: ras-correctable-errors.patch BuildRequires: perl-generators Requires: grep mailx @@ -60,6 +61,7 @@ of the package on many systems. %patch11 -p1 %patch12 -p1 %patch13 -p1 +%patch14 -p1 rm -f scripts/services/*.orig %build @@ -159,6 +161,10 @@ echo "# Configuration overrides for specific logfiles/services may be placed her %{_mandir}/man*/* %changelog +* Tue Jun 27 2023 Pavel Šimovec - 7.4.3-17 +- do not treat "RAS: Correctable Errors collector initialized" message as an error +- Resolves: rhbz#2043946 + * Tue Jun 27 2023 Pavel Šimovec - 7.4.3-16 - ignore normal "Server ready" startup message from fail2ban - Resolves: rhbz#2043944 diff --git a/ras-correctable-errors.patch b/ras-correctable-errors.patch new file mode 100644 index 0000000..b583fa6 --- /dev/null +++ b/ras-correctable-errors.patch @@ -0,0 +1,11 @@ +--- a/scripts/services/kernel ++++ b/scripts/services/kernel +@@ -135,6 +135,7 @@ + $SkipError = 1 if $ThisLine =~ /ERST: Error Record Serialization Table \(ERST\) support is initialized/; + $SkipError = 1 if $ThisLine =~ /GHES: Generic hardware error source: \d+ notified via .* is not supported/; + $SkipError = 1 if $ThisLine =~ /PCIe errors handled by (?:BIOS|OS)/; ++ $SkipError = 1 if $ThisLine =~ /RAS: Correctable Errors collector initialized\.$/; + # These happen when kerberos tickets expire, which can be normal + $SkipError = 1 if $ThisLine =~ /Error: state manager encountered RPCSEC_GSS session expired against NFSv4 server/ && $Ignore_rpcsec_expired; + # filter out mount options +