SF.net SVN: logwatch:[183] scripts/services/kernel

[email protected]
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 183
          http://sourceforge.net/p/logwatch/code/183
Author:   stefjakobs
Date:     2014-01-26 13:32:28 +0000 (Sun, 26 Jan 2014)
Log Message:
-----------
kernel: don't report mount options as kernel errors. (Thanks: Al_)

Modified Paths:
--------------
    scripts/services/kernel

Modified: scripts/services/kernel
===================================================================
--- scripts/services/kernel	2014-01-26 12:46:02 UTC (rev 182)
+++ scripts/services/kernel	2014-01-26 13:32:28 UTC (rev 183)
@@ -121,6 +121,8 @@
       $SkipError = 1 if $ThisLine =~ /PCIe errors handled by (?:BIOS|OS)/;
       # These happen when kerberos tickets expire, which can be normal
       $SkipError = 1 if $ThisLine =~ /Error: state manager encountered RPCSEC_GSS session expired against NFSv4 server/ && $Ignore_rpcsec_expired;
+      # filter out mount options
+      $SkipError = 1 if $ThisLine =~ /errors=(?:continue|remount-ro|panic)/;
       $Errors{$errormsg}++ if ( (! $SkipError) || ($Detail > 8));
    } elsif ( ( my $errormsg ) = ( $ThisLine =~ /((BUG|WARNING|INFO):.{0,40})/ ) ) {
       $Errors{$errormsg}++;

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.