SF.net SVN: logwatch:[266] trunk/scripts/services/stunnel

[email protected] Wed, 12 Nov 2014 10:29:47 +0000
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 266
          http://sourceforge.net/p/logwatch/code/266
Author:   stefjakobs
Date:     2014-11-12 10:29:44 +0000 (Wed, 12 Nov 2014)
Log Message:
-----------
stunnel: report more errors

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

Modified: trunk/scripts/services/stunnel
===================================================================
--- trunk/scripts/services/stunnel	2014-10-29 21:35:16 UTC (rev 265)
+++ trunk/scripts/services/stunnel	2014-11-12 10:29:44 UTC (rev 266)
@@ -76,6 +76,10 @@
       # ignore
    } elsif ($ThisLine =~ m/^connect_blocking: connected/) {
       # ignore
+   } elsif ($ThisLine =~ m/^connect_blocking: getsockopt ([0-9a-fA-F.:]+: Connection refused) \(\d+\)$/) {
+      $errors{"connect_blocking: $1"}++;
+   } elsif ($ThisLine =~ m/^(?:remote socket|local socket|accept): (Too many open files) \(\d+\)$/) {
+      $errors{"$1: increase the maximum number of open file descriptors"}++;
    } elsif ($ThisLine =~ m/^Log file reopened$/) {
       # ignore
    } elsif ($ThisLine =~ m/^SSL socket closed on SSL_read with \d+ byte\(s\) in buffer$/) {
@@ -88,6 +92,8 @@
       $connections{"remote: $1"}{$2}++;
    } elsif ($ThisLine =~ m/^Error detected on (SSL|socket) \((read|write)\) file descriptor: (.*) \(\d+\)/) {
       $errors{"$1 $2 file descriptor: $3"}++;
+   } elsif ($ThisLine =~ m/^(SSL_write: (?:Broken pipe|Connection reset by peer)) \(\d+\)$/) {
+      $errors{"$1"}++;
    } elsif ($ThisLine =~ m/^transfer: s_poll_wait: TIMEOUTclose exceeded: closing$/) {
       $notices{"TIMEOUTclose exceeded: closing connection"}++;
    } elsif ($ThisLine =~ m/^(SSL_(?:accept|read|shutdown): .*|getpeerbyname: .*)(?: \(\d+\))?$/) {

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


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk