Package: logcheck
Severity: wishlist

I'm attaching rules suggestions for dhcpcd as a git patch, and also a
sample from my logs.

Please review the patch (I can fix any issues with it) and include in
logcheck if you like it.
From eebc78bb089fd7e69a8922cec9c003a023bfe0de Mon Sep 17 00:00:00 2001
From: Pawel Hajdan jr <phajdan...@gmail.com>
Date: Fri, 8 Jan 2010 16:05:00 +0100
Subject: [PATCH] Added rules for dhcpcd.


Signed-off-by: Pawel Hajdan jr <phajdan...@gmail.com>
---
 rulefiles/linux/ignore.d.workstation/dhcpcd |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
 create mode 100644 rulefiles/linux/ignore.d.workstation/dhcpcd

diff --git a/rulefiles/linux/ignore.d.workstation/dhcpcd 
b/rulefiles/linux/ignore.d.workstation/dhcpcd
new file mode 100644
index 0000000..3960de7
--- /dev/null
+++ b/rulefiles/linux/ignore.d.workstation/dhcpcd
@@ -0,0 +1,7 @@
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpcd\[[0-9]+\]: \w+[0-9]+: received 
SIGTERM, stopping$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpcd\[[0-9]+\]: \w+[0-9]+: dhcpcd [.0-9]+ 
starting$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpcd\[[0-9]+\]: \w+[0-9]+: broadcasting 
for a lease$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpcd\[[0-9]+\]: \w+[0-9]+: 
(acknowledged|offered) [.0-9]+ from [.0-9]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpcd\[[0-9]+\]: \w+[0-9]+: checking 
[.0-9]+ is available on attached networks$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpcd\[[0-9]+\]: \w+[0-9]+: renewing lease 
of [.0-9]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhcpcd\[[0-9]+\]: \w+[0-9]+: leased [.0-9]+ 
for [0-9]+ seconds$
\ No newline at end of file
-- 
1.6.5.2

Dec 28 18:23:00 localhost dhcpcd[24945]: eth0: leased 172.16.97.128 for 1800 
seconds
Dec 28 18:34:44 localhost dhcpcd[24945]: eth0: received SIGTERM, stopping
Dec 29 09:57:37 localhost dhcpcd[22981]: eth0: dhcpcd 4.0.15 starting
Dec 29 09:57:37 localhost dhcpcd[22981]: eth0: broadcasting for a lease
Dec 29 09:57:38 localhost dhcpcd[22981]: eth0: offered 172.16.97.128 from 
172.16.97.254
Dec 29 09:57:39 localhost dhcpcd[22981]: eth0: acknowledged 172.16.97.128 from 
172.16.97.254
Dec 29 09:57:39 localhost dhcpcd[22981]: eth0: checking 172.16.97.128 is 
available on attached networks
Dec 29 09:57:45 localhost dhcpcd[22981]: eth0: leased 172.16.97.128 for 1800 
seconds
Dec 29 10:12:45 localhost dhcpcd[23007]: eth0: renewing lease of 172.16.97.128
Dec 29 10:12:45 localhost dhcpcd[23007]: eth0: acknowledged 172.16.97.128 from 
172.16.97.254
Dec 29 10:12:45 localhost dhcpcd[23007]: eth0: leased 172.16.97.128 for 1800 
seconds
Dec 29 10:27:45 localhost dhcpcd[23007]: eth0: renewing lease of 172.16.97.128
Dec 29 10:27:45 localhost dhcpcd[23007]: eth0: acknowledged 172.16.97.128 from 
172.16.97.254
Dec 29 10:27:45 localhost dhcpcd[23007]: eth0: leased 172.16.97.128 for 1800 
seconds
Dec 29 10:42:45 localhost dhcpcd[23007]: eth0: renewing lease of 172.16.97.128
Dec 29 10:42:46 localhost dhcpcd[23007]: eth0: acknowledged 172.16.97.128 from 
172.16.97.254
Dec 29 10:42:46 localhost dhcpcd[23007]: eth0: leased 172.16.97.128 for 1800 
seconds
Dec 29 10:57:46 localhost dhcpcd[23007]: eth0: renewing lease of 172.16.97.128
Dec 29 10:57:46 localhost dhcpcd[23007]: eth0: acknowledged 172.16.97.128 from 
172.16.97.254
Dec 29 10:57:46 localhost dhcpcd[23007]: eth0: leased 172.16.97.128 for 1800 
seconds
Dec 29 11:12:46 localhost dhcpcd[23007]: eth0: renewing lease of 172.16.97.128
Dec 29 11:12:46 localhost dhcpcd[23007]: eth0: acknowledged 172.16.97.128 from 
172.16.97.254
Dec 29 11:12:46 localhost dhcpcd[23007]: eth0: leased 172.16.97.128 for 1800 
seconds

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Logcheck-devel mailing list
Logcheck-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel

Reply via email to