SF.net SVN: logwatch:[226] scripts/services/fail2ban

[email protected] Tue, 9 Sep 2014 11:07:28 +0000
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Revision: 226
          http://sourceforge.net/p/logwatch/code/226
Author:   stefjakobs
Date:     2014-09-09 11:07:27 +0000 (Tue, 09 Sep 2014)
Log Message:
-----------
fail2ban: bans may also be logged with NOTICE (Thanks: Gerald Cox)

Modified Paths:
--------------
    scripts/services/fail2ban

Modified: scripts/services/fail2ban
===================================================================
--- scripts/services/fail2ban	2014-09-09 10:12:29 UTC (rev 225)
+++ scripts/services/fail2ban	2014-09-09 11:07:27 UTC (rev 226)
@@ -82,7 +82,7 @@
 	if ( $Debug >= 6 ) {
 	    print STDERR "DEBUG($DebugCounter): line ignored\n";
 	}
-    } elsif ( my ($Service,$Action,$Host) = ($ThisLine =~ m/WARNING:?\s\[?(.*?)[]:]?\s(Ban|Unban)[^\.]* (\S+)/)) {
+    } elsif ( my ($Service,$Action,$Host) = ($ThisLine =~ m/(?:WARNING|NOTICE):?\s\[?(.*?)[]:]?\s(Ban|Unban)[^\.]* (\S+)/)) {
 	if ( $Debug >= 6 ) {
 	    print STDERR "DEBUG($DebugCounter): Found $Action for $Service from $Host\n";
 	}

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


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk