Revision: 160
http://sourceforge.net/p/logwatch/code/160
Author: stefjakobs
Date: 2013-08-19 09:37:46 +0000 (Mon, 19 Aug 2013)
Log Message:
-----------
add minimal drdb support to kernel service script (thanks gulikoza)
Modified Paths:
--------------
scripts/services/kernel
Modified: scripts/services/kernel
===================================================================
--- scripts/services/kernel 2013-08-19 09:35:30 UTC (rev 159)
+++ scripts/services/kernel 2013-08-19 09:37:46 UTC (rev 160)
@@ -57,6 +57,7 @@
my $Ignore_rpcsec_expired = $ENV{'ignore_rpcsec_expired'} || 0;
my %SYNflood = ();
my %RAIDErrors = ();
+my %DRBDErrors = ();
my %SegFaults = ();
my %GPFaults = ();
my %TrapInt3s = ();
@@ -103,6 +104,8 @@
# Standard boot messages
next if $ThisLine =~ /Giving out device to /;
$EDACs{$1}++;
+ } elsif ($ThisLine =~ /block (drbd\d+): Online verify found (\d+) \d+k block out of sync/) {
+ $DRBDErrors{$1} = $2;
} elsif ( ( my $errormsg ) = ( $ThisLine =~ /(.*?error.{0,17})/i ) ) {
# filter out smb open/read errors cased by insufficient permissions
my $SkipError = 0;
@@ -131,6 +134,7 @@
$SkipError = 1 if $ThisLine =~ /smb_readpage_sync: .*open failed, error=-13/;
$SkipError = 1 if $ThisLine =~ /smb_open: .* open failed, result=-13/;
$SkipError = 1 if $ThisLine =~ /smb_open: .* open failed, error=-13/;
+ $SkipError = 1 if $ThisLine =~ /block drbd\d+: Out of sync: start=\d+/;
$Kernel{$ThisLine}++ if ( (! $SkipError) || ($Detail > 8)) ;
}
}
@@ -152,6 +156,13 @@
}
}
+if (keys %DRBDErrors) {
+ print "\nWARNING: DRBD Errors Present\n";
+ foreach my $Thisone ( sort {$a cmp $b} keys %DRBDErrors ) {
+ print " $Thisone : $DRBDErrors{$Thisone} block(s) out of sync\n";
+ }
+}
+
if (keys %SegFaults) {
my $header_printed=0;
foreach my $Thisone ( sort {$a cmp $b} keys %SegFaults ) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&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.