logwatch/logwatch-smartd.patch
2011-01-13 17:17:36 +01:00

14 lines
829 B
Diff

--- logwatch-20110113/scripts/services/smartd.orig 2011-01-06 23:16:39.000000000 +0100
+++ logwatch-20110113/scripts/services/smartd 2011-01-13 16:16:44.880504722 +0100
@@ -102,6 +102,10 @@ while (defined(my $ThisLine = <STDIN>))
# ignore
} elsif ( ($Device) = ($ThisLine =~ /^Device: ([^,]+), is in STANDBY mode, skipping checks/ )) {
# ignore
+ } elsif ( ($Device) = ($ThisLine =~ /^Device: ([^,]+), self-test in progress, [0-9]+% remaining/ )) {
+ # ignore
+ } elsif ( ($Device) = ($ThisLine =~ /^Device: ([^,]+), previous self-test completed without error/ )) {
+ # ignore
} elsif ( ($Device) = ($ThisLine =~ /^Device: ([^,]+), type changed from \'\w+\' to \'\w+\'/ )) {
# ignore
} elsif ( ($Device) = ($ThisLine =~ /^Device: ([^,]+), state (?:read from|written to)/ )) {