Revision: 85
http://logwatch.svn.sourceforge.net/logwatch/?rev=85&view=rev
Author: opoplawski
Date: 2012-02-27 16:51:33 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
Handle pyzor TERMINATED messages in spamassassin
Modified Paths:
--------------
scripts/services/spamassassin
Modified: scripts/services/spamassassin
===================================================================
--- scripts/services/spamassassin 2012-02-26 15:43:00 UTC (rev 84)
+++ scripts/services/spamassassin 2012-02-27 16:51:33 UTC (rev 85)
@@ -46,6 +46,7 @@
$StillRoot = 0;
$CleanTotal = 0;
$SpamTotal = 0;
+$PyzorTerminated = 0;
my %Child;
my %Clean;
@@ -89,6 +90,9 @@
$StillRoot++;
} elsif ( $ThisLine =~ m/^spamd: connection from (.*) at port / ) {
$Connections{$1}++;
+ # These are caused by pyzor taking too long and being terminated
+ } elsif ( $ThisLine =~ m/^pyzor:.* error: TERMINATED, signal 15/ ) {
+ $PyzorTerminated++;
} elsif ( $ThisLine =~ m/\bchild\b/ ) {
chomp($ThisLine);
# Many perl errors report pseudo-line-numbers, e.g.
@@ -138,7 +142,7 @@
}
if (keys %Child) {
- print "\nChild-related errors\nn";
+ print "\nChild-related errors\n";
foreach $line (sort {$Child{$b}<=>$Child{$a} } keys %Child) {
print " $line: $Child{$line} Time(s)\n";
}
@@ -156,6 +160,10 @@
}
}
+if ( $PyzorTerminated) {
+ print "\nPyzor TERMINATED errors: $PyzorTerminated time(s)\n";
+}
+
if (keys %OtherList) {
print "\n**Unmatched Entries**\n";
foreach $line (sort {$OtherList{$b}<=>$OtherList{$a} } keys %OtherList) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
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.