Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365389 - app-admin/logcheck: improved regexps for xlockmore
Summary: app-admin/logcheck: improved regexps for xlockmore
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Paweł Hajdan, Jr. (RETIRED)
URL: http://lists.alioth.debian.org/piperm...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-30 09:04 UTC by Libor Polčák
Modified: 2011-05-02 17:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixed version of xlockmore file (xlockmore,461 bytes, text/plain)
2011-04-30 09:06 UTC, Libor Polčák
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Libor Polčák 2011-04-30 09:04:18 UTC
app-admin/logcheck comes with several predefined regexps for different applications that are ignored if present in system logs. I believe that regexps for xlockmore installed to /etc/logcheck/ignore.d.workstation/xlockmore should be adjusted. Currently the display is specified as:

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

However, this regexp does not match for example ":0"

So the content of the xlockmore file should be changed to:

^\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:]]+)?$

The only difference is the question mark in "[._[:alnum:]-]*:[[:digit:]]+(\.[[:digit:]]+)?" part of the regexps.
Comment 1 Libor Polčák 2011-04-30 09:06:15 UTC
Created attachment 271613 [details]
Fixed version of xlockmore file
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-05-02 07:15:38 UTC
Thank you. This is not something to be changed by a distribution. Could you submit patches upstream? I've been doing just that, and it is generally easy.

Please read http://www.debian.org/Bugs/Reporting for info how to open Debian bug reports (the package name is also logcheck; the project is just maintained by Debian). Read also http://wiki.logcheck.org/RuleSubmission for some more info about submitting rules (for example, it is important to include complete log lines from your system).
Comment 3 Libor Polčák 2011-05-02 17:36:15 UTC
I have sent them the patch. This bug can be closed.
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-05-02 17:45:25 UTC
Thank you!