Fwd: Suggestion for sendmail

"Kirk Bauer" <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
---------- Forwarded message ----------
From: Win Bent <[email protected]>
Date: Nov 26, 2007 5:39 PM
Subject: Suggestion for sendmail
To: [email protected]
Cc: Win Bent <[email protected]>


Logwatch 7.3 (released 03/24/06)
/usr/share/logwatch/scripts/services/sendmail Revision 1.68
2006/03/21 14:58:06  bjorn

Detail Level 3 produces a nice summary of errors found, except for the
"Error during Collect" section.  The totals for individual reasons are
printed, but only as "Total:" without giving the reasons.  This is
appropriate for Level 5, but not 3, so I suggest this change:

--- -   2007-11-26 18:37:59.658868000 -0600
+++ sendmail    2007-11-24 15:11:29.000000000 -0600
@@ -1,8 +1,11 @@

 ##########################################################################
-# $Id: sendmail,v 1.1 2007/11/24 19:41:37 whb Exp $
+# $Id: sendmail,v 1.2 2007/11/24 21:10:46 whb Exp $
 ##########################################################################
 # $Log: sendmail,v $
+# Revision 1.2  2007/11/24 21:10:46  whb
+# Improve "Error during Collect" for Detail=3
+#
 # Revision 1.1  2007/11/24 19:41:37  whb
 # Initial revision
 #
@@ -1569,7 +1572,8 @@
          }
          $colerror = $colerror + $CollectError{$Reason}{$Source};
       }
-      print "\n    Total: $colerror" if ($Detail >= 3);
+      if ($Detail >= 5)    { print "\n    Total: $colerror"; }
+      elsif ($Detail >= 3) { print "\n    $Reason: $colerror"; }
       $TotalError[$ErrorIndex] += $colerror;
    }
 }

Thank you for continuing to maintain and improve logwatch - I rely on it!

        - Win
--
Win Bent, Head          [email protected]
Bent Sound Research     Sound advice for over 30 years!




-- 
Kirk Bauer <[email protected]>
http://linux.kaybee.org | www.logwatch.org
Author, Automating UNIX & Linux Administration
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.