Mercurial > repos > other > Puppet
diff common/logwatch/services-fail2ban @ 67:4be7f49debc2
"Already Banned" is actually at NOTICE
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 11 Oct 2015 18:41:53 +0000 |
parents | e424cd208b99 |
children | 893391e42d94 |
line wrap: on
line diff
--- a/common/logwatch/services-fail2ban Sat Sep 26 14:28:16 2015 +0000 +++ b/common/logwatch/services-fail2ban Sun Oct 11 18:41:53 2015 +0000 @@ -102,7 +102,7 @@ push @{$ServicesBans{$Service}{$Host}{'Failures'}}, $NumFailures; } elsif ( my ($Service,$Host) = ($ThisLine =~ m/ ERROR:\s(.*):\s(\S+)\salready in ban list/)) { $ServicesBans{$Service}{$Host}{'AlreadyInTheList'}++; - } elsif ( my ($Service,$Host) = ($ThisLine =~ m/(?:INFO|WARNING)\s*\[(.*)\]\s*(\S+)\s*already banned/)) { + } elsif ( my ($Service,$Host) = ($ThisLine =~ m/(?:INFO|WARNING|NOTICE)\s*\[(.*)\]\s*(\S+)\s*already banned/)) { $ServicesBans{$Service}{$Host}{'AlreadyInTheList'}++; } elsif ( my ($Service,$Host) = ($ThisLine =~ m/ WARNING:\s(.*):\sReBan (\S+)/)) { $ServicesBans{$Service}{$Host}{'ReBan'}++;