Package: logcheck-database
Version: 1.3.3
Severity: wishlist
Tags: patch

Hi,

the attached patch modifies git version of ignore.d.workstation/kernel to also 
ignore messages like these

Aug 19 06:49:10 t400 kernel: [ 2884.857181] sd 5:0:0:0: [sdd] 156301488 
512-byte hardware sectors: (80.0 GB/74.5 GiB)
Aug 19 11:50:25 t400 kernel: [20960.155824] sd 7:0:0:0: [sdc] 15682559 512-byte 
hardware sectors: (8.02 GB/7.47 GiB)
Aug 19 12:38:36 t400 kernel: [23851.005063] sd 8:0:0:0: [sdc] 506880 512-byte 
hardware sectors: (259 MB/247 MiB)
Aug 19 12:38:43 t400 kernel: [23857.727690] sd 9:0:0:0: [sdd] 2006673 512-byte 
hardware sectors: (1.02 GB/979 MiB)

Hannes

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30.5 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information
--- /etc/logcheck/ignore.d.workstation/kernel.orig      2009-08-19 
12:49:14.000000000 +0200
+++ /etc/logcheck/ignore.d.workstation/kernel   2009-08-19 12:50:56.000000000 
+0200
@@ -53,7 +53,7 @@
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ 
*[[:digit:]]+\.[[:digit:]]+\])? sd [[:digit:]:]+ Attached scsi (removable 
)?disk sd[a-z]$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ 
*[[:digit:]]+\.[[:digit:]]+\])? sd [:[:digit:]]+: \[sd[a-z]\] Attached SCSI 
(removable )?disk$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ 
*[[:digit:]]+\.[[:digit:]]+\])? SCSI device sd[a-z]: [[:digit:]]+ 512-byte hdwr 
sectors \([[:digit:]]+ MB\)$
-^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ 
*[[:digit:]]+\.[[:digit:]]+\])? sd [:[:digit:]]+: \[sd[a-z]\] [[:digit:]]+ 
[[:digit:]]+-byte hardware sectors \([[:digit:]]+ MB\)$
+^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ 
*[[:digit:]]+\.[[:digit:]]+\])? sd [:[:digit:]]+: \[sd[a-z]\] [[:digit:]]+ 
[[:digit:]]+-byte hardware sectors:? \([.[:digit:]]+ (G|M)B(/[.[:digit:]]+ 
(G|M)iB)?\)$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ 
*[[:digit:]]+\.[[:digit:]]+\])? sd [:[:digit:]]+: \[sd[a-z]\] Write Protect is 
(off|on)$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ 
*[[:digit:]]+\.[[:digit:]]+\])? sd [:[:digit:]]+: \[sd[a-z]\] Mode Sense: 
[[:digit:]]+ [[:digit:]]+ [[:digit:]]+ [[:digit:]]+$
 ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ kernel:( \[ 
*[[:digit:]]+\.[[:digit:]]+\])? sd [:[:digit:]]+: \[sd[a-z]\] Assuming drive 
cache: write through$
_______________________________________________
Logcheck-devel mailing list
Logcheck-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel

Reply via email to