Hello,

I have adjusted display specification of ignore lines for xlockmore. The
only difference is the addition of question mark in the following part
of regexps:

[._[:alnum:]-]*:[[:digit:]]+(\.[[:digit:]]+)?

The goal is to match display ":0" and similar.

I have attached the patch file created by git.

Best regards,

Libor Polčák
From 95b4026e9ccc3d4947889ee751d41d81c5f7ab5f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Libor=20Pol=C4=8D=C3=A1k?= <[email protected]>
Date: Mon, 2 May 2011 19:03:50 +0200
Subject: [PATCH] i.d.w/xlockmore: ignore local display
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Ignore also display type :0 and similar (without .[digit])

Signed-off-by: Libor Polčák <[email protected]>
---
 rulefiles/linux/ignore.d.workstation/xlockmore |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rulefiles/linux/ignore.d.workstation/xlockmore 
b/rulefiles/linux/ignore.d.workstation/xlockmore
index 015f1f0..2828141 100644
--- a/rulefiles/linux/ignore.d.workstation/xlockmore
+++ b/rulefiles/linux/ignore.d.workstation/xlockmore
@@ -1,3 +1,3 @@
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ xlock\[[0-9]+\]: Start: [._[:alnum:]-]+, 
[._[:alnum:]-]+, [._[:alnum:]-]*:[[:digit:]]+(\.[[:digit:]]+)$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ xlock\[[0-9]+\]: Stop: [._[:alnum:]-]+, 
[._[:alnum:]-]+, [._[:alnum:]-]*:[[:digit:]]+(\.[[:digit:]]+), [[:digit:]]+m 
[[:digit:]]+s$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ xlock\[[0-9]+\]: xlock: expired\. closing 
down \(uid [[:digit:]]+\) on [._[:alnum:]-]*:[[:digit:]]+(\.[[:digit:]]+)$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ xlock\[[0-9]+\]: Start: [._[:alnum:]-]+, 
[._[:alnum:]-]+, [._[:alnum:]-]*:[[:digit:]]+(\.[[:digit:]]+)?$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ xlock\[[0-9]+\]: Stop: [._[:alnum:]-]+, 
[._[:alnum:]-]+, [._[:alnum:]-]*:[[:digit:]]+(\.[[:digit:]]+)?, [[:digit:]]+m 
[[:digit:]]+s$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ xlock\[[0-9]+\]: xlock: expired\. closing 
down \(uid [[:digit:]]+\) on [._[:alnum:]-]*:[[:digit:]]+(\.[[:digit:]]+)?$
-- 
1.7.3.4

_______________________________________________
Logcheck-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel

Reply via email to