[logcheck/f16] ignore standard NetworkManager, systemd messages

Matthias Runge mrunge at fedoraproject.org
Fri Nov 18 09:05:14 UTC 2011


commit 81a8f960f3b5de7277a5be56a068e020eaaaf7aa
Author: Matthias Runge <mrunge at matthias-runge.de>
Date:   Fri Nov 18 10:04:37 2011 +0100

    ignore standard NetworkManager, systemd messages

 logcheck.spec                |   12 +++++++++++-
 logchk-NetworkManager-ignore |    4 ++++
 logchk-systemd-ignore        |    4 ++++
 3 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/logcheck.spec b/logcheck.spec
index f7baca5..7e766a2 100644
--- a/logcheck.spec
+++ b/logcheck.spec
@@ -1,12 +1,14 @@
 Name:           logcheck 
 Version:        1.3.14
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Analyzes log files and sends noticeable events as email 
 
 License:        GPLv2
 Group:          Applications/System
 URL:            http://logcheck.org/
 Source0:        http://ftp.de.debian.org/debian/pool/main/l/%{name}/%{name}_%{version}.tar.gz
+Source1:        logchk-systemd-ignore
+Source2:        logchk-NetworkManager-ignore			
 Patch0:         logcheck-dhclient.patch
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -66,6 +68,10 @@ rm -f %{buildroot}%{_mandir}/man8/manpage.*
 
 %{__mkdir} -pm 755 %{buildroot}%{_sysconfdir}/tmpfiles.d
 %{__install} -pm 644 etc/tmpfiles.d-logcheck %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
+
+# install fedora tweaked rule files
+%{__install} -pm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/ignore.d.server/
+%{__install} -pm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/ignore.d.server/
 %clean
 rm -rf %{buildroot}
 
@@ -105,6 +111,10 @@ exit 0
 
 
 %changelog
+* Fri Nov 18 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.14-3
+- ignore NetworkManager standard messages
+- ignore systemd-login standard messages
+
 * Mon Nov 14 2011 Matthias Runge <mrunge at matthias-runge.de> 1.3.14-2
 - ignore dhclient messages (bug 751047)
 
diff --git a/logchk-NetworkManager-ignore b/logchk-NetworkManager-ignore
new file mode 100644
index 0000000..0e000bc
--- /dev/null
+++ b/logchk-NetworkManager-ignore
@@ -0,0 +1,4 @@
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ NetworkManager\[[0-9]+\]: DHCPREQUEST on [._[:alnum:]-]+ to [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+ port [[:digit:]]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ NetworkManager\[[0-9]+\]: DHCPACK from [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ NetworkManager\[[0-9]+\]: bound to [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+ -- renewal in [[:digit:]]+ seconds\.$
+
diff --git a/logchk-systemd-ignore b/logchk-systemd-ignore
new file mode 100644
index 0000000..f5d1ae8
--- /dev/null
+++ b/logchk-systemd-ignore
@@ -0,0 +1,4 @@
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd-logind\[[0-9]+\]: Removed session [[:digit:]]+\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd-logind\[[0-9]+\]: New session [[:digit:]]+ of user [._[:alnum:]-]+\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ systemd-logind\[[0-9]+\]: User [._[:alnum:]-]+ logged out\.$
+


More information about the scm-commits mailing list