Revision: 76
http://logwatch.svn.sourceforge.net/logwatch/?rev=76&view=rev
Author: opoplawski
Date: 2011-12-20 18:15:21 +0000 (Tue, 20 Dec 2011)
Log Message:
-----------
Handle trap int3 messages like faults
Modified Paths:
--------------
scripts/services/kernel
Modified: scripts/services/kernel
===================================================================
--- scripts/services/kernel 2011-12-13 21:53:56 UTC (rev 75)
+++ scripts/services/kernel 2011-12-20 18:15:21 UTC (rev 76)
@@ -54,10 +54,12 @@
my $Detail = $ENV{'LOGWATCH_DETAIL_LEVEL'} || 0;
my $Ignore_faults = $ENV{'ignore_faults'};
+my $Ignore_rpcsec_expired = $ENV{'ignore_rpcsec_expired'} || 0;
my %SYNflood = ();
my %RAIDErrors = ();
my %SegFaults = ();
my %GPFaults = ();
+my %TrapInt3s = ();
my %UnalignedErrors = ();
my %FPAssists = ();
my %OOM = ();
@@ -88,6 +90,8 @@
$SegFaults{$1}++;
} elsif ($ThisLine =~ /([^(]*)\[\d+\] general protection/) {
$GPFaults{$1}++;
+ } elsif ($ThisLine =~ /([^(]*)\[\d+\] trap int3 /) {
+ $TrapInt3s{$1}++;
} elsif ($ThisLine =~ /([^(]*)\(\d+\): unaligned access to/) {
$UnalignedErrors{$1}++;
} elsif ($ThisLine =~ /([^(]*)\(\d+\): floating-point assist fault at ip/) {
@@ -105,6 +109,8 @@
# These are informative, not errors
$SkipError = 1 if $ThisLine =~ /PCIe errors handled by OS/;
$SkipError = 1 if $ThisLine =~ /GHES: Generic hardware error source: \d notified via .* is not supported/;
+ # 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;
$Errors{$errormsg}++ if ( (! $SkipError) || ($Detail > 8));
}
# OTHER
@@ -162,6 +168,18 @@
}
}
+if (keys %TrapInt3s) {
+ my $header_printed=0;
+ foreach my $Thisone ( sort {$a cmp $b} keys %TrapInt3s ) {
+ if ($Ignore_faults =~ /\b\Q$Thisone\E\b/i) { next; }
+ if (!$header_printed) {
+ print "\nWARNING: Trap int3 in these executables\n";
+ $header_printed=1;
+ }
+ print " $Thisone : $TrapInt3s{$Thisone} Time(s)\n";
+ }
+}
+
if (keys %UnalignedErrors) {
print "\nWARNING: Unaligned Errors in these executables\n";
foreach my $Thisone ( sort {$a cmp $b} keys %UnalignedErrors ) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
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.