SF.net SVN: logwatch:[299] trunk/scripts/services/dirsrv

[email protected] Fri, 6 Nov 2015 23:34:03 +0000
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 299
          http://sourceforge.net/p/logwatch/code/299
Author:   opoplawski
Date:     2015-11-06 23:34:02 +0000 (Fri, 06 Nov 2015)
Log Message:
-----------
[dirsrv] Handle some more massages from IPA backups

Modified Paths:
--------------
    trunk/scripts/services/dirsrv

Modified: trunk/scripts/services/dirsrv
===================================================================
--- trunk/scripts/services/dirsrv	2015-10-29 20:26:04 UTC (rev 298)
+++ trunk/scripts/services/dirsrv	2015-11-06 23:34:02 UTC (rev 299)
@@ -24,6 +24,9 @@
 my $BackupCompleted;
 my %BackupFile;
 my %Export;
+my %NSSCiphers;
+my %SSLInit;
+my %Info;
 my %OtherList;
 my $PreviousLine = '';
 
@@ -31,15 +34,19 @@
    chomp($ThisLine);
    
    if ($ThisLine =~ /^Listening for new connections again$/
-       or $ThisLine =~ /Listening on .* port/
+       or $ThisLine =~ /Listening on .* (for LDAPI requests|port)/
        or $ThisLine =~ /^Waiting for \d+ database threads to stop/
        or $ThisLine =~ /^slapd shutting down - /
+       or $ThisLine =~ /^SSL alert: Configured NSS Ciphers$/
+       or $ThisLine =~ /^ldbm_back_.* - conn=/
+       or $ThisLine =~ /^ldbm_usn_init - backend: /
       ) {
       #Ignore
    } elsif ($ThisLine =~ /error/i
        or $ThisLine =~ /^Detected Disorderly Shutdown/) {
       $Errors{$ThisLine}++;
-   } elsif ($ThisLine =~ /^Not listening for new connections/) {
+   } elsif ($ThisLine =~ /warning/i
+       or $ThisLine =~ /^Not listening for new connections/) {
       $Warnings{$ThisLine}++;
    } elsif ($ThisLine =~ /^(.*) starting up$/) {
       $Startup{$1}++;
@@ -51,11 +58,20 @@
       $BackupCompleted++;
    } elsif ($ThisLine =~ /^Backing up file \d+ \((.*)\)$/) {
       $BackupFile{$1}++;
+   } elsif ($ThisLine =~ /^Copying (.*) to /) {
+      $BackupFile{$1}++;
    } elsif ($ThisLine =~ /^export (\w+: Processed \d+ entries \(\d+%\)\.)$/) {
       $Export{$1}++;
+   } elsif ($ThisLine =~ /^SSL alert:\s+(\S+): (\w+)/) {
+      $NSSCiphers{$1} = $2;
+   } elsif ($ThisLine =~ /^SSL Initialization - (.*)/) {
+      $SSLInit{$1}++;
+   } elsif ($ThisLine =~ /^(Total entry cache size:.*)/
+            or $ThisLine =~ /^(userRoot: entry cache size:.*)/) {
+      $Info{$1}++;
    } elsif ($ThisLine =~ /^All database threads now stopped$/) {
-      #This line follows the previous normally in backups
-      $OtherList{$ThisLine}++ unless $PreviousLine =~ /^(export \w+: Processed \d+ entries|Waiting for \d+ database threads to stop|Backing up file)/;
+      #This line follows the previous normally in backups or shutdown
+      $OtherList{$ThisLine}++ unless $PreviousLine =~ /^(export \w+: Processed \d+ entries|Waiting for \d+ database threads to stop|Backing up file|Copying .* to )/;
    } else {
       $OtherList{$ThisLine}++;
    }
@@ -110,6 +126,27 @@
    }
 }
 
+if (keys %Info and $Detail >= 7) {
+   print "\nInformational Messages::\n";
+   foreach my $Line (keys %Info) {
+      print "  $Line $Info{$Line} Time(s)\n";
+   }
+}
+
+if (keys %SSLInit and $Detail >= 7) {
+   print "\nSSL Initialization:\n";
+   foreach my $Message (sort {$a cmp $b} keys %SSLInit) {
+      print "    $Message\n";
+   }
+}
+
+if (keys %NSSCiphers and $Detail >= 7) {
+   print "\nNSS Cipers:\n";
+   foreach my $Cipher (sort {$a cmp $b} keys %NSSCiphers) {
+      print "    $Cipher: $NSSCiphers{$Cipher}\n";
+   }
+}
+
 if (keys %OtherList) {
    print "\n**Unmatched Entries**\n";
    foreach my $line (sort {$a cmp $b} keys %OtherList) {

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


------------------------------------------------------------------------------