7e1782
From 256829aeb864a25a3542aaacfb2a7ff62b77e7f4 Mon Sep 17 00:00:00 2001
7e1782
From: Jan Synacek <jsynacek@redhat.com>
7e1782
Date: Tue, 15 Mar 2016 10:29:17 +0100
7e1782
Subject: [PATCH] sshd: fix unmatched entries because of the output change in
7e1782
 openssh-7.2p2
7e1782
7e1782
---
7e1782
 scripts/services/sshd | 2 +-
7e1782
 1 file changed, 1 insertion(+), 1 deletion(-)
7e1782
7e1782
diff --git a/scripts/services/sshd b/scripts/services/sshd
7e1782
index e238863..b94ea5a 100755
7e1782
--- a/scripts/services/sshd
7e1782
+++ b/scripts/services/sshd
7e1782
@@ -387,7 +387,7 @@ while (defined(my $ThisLine = <STDIN>)) {
7e1782
       $RefusedConnections{$1}++;
7e1782
    } elsif ( my ($Reason) = ($ThisLine =~ /^Authentication refused: (.*)$/ ) ) {
7e1782
       $RefusedAuthentication{$Reason}++;
7e1782
-   } elsif ( my ($Host,$Reason) = ($ThisLine =~ /^Received disconnect from ([^ ]*): (.*)$/)) {
7e1782
+   } elsif ( my ($Host,$Reason) = ($ThisLine =~ /^Received disconnect from ([^ ]*) port [^ ]*: (.*)$/)) {
7e1782
       # Reason 11 (SSH_DISCONNECT_BY_APPLICATION) is expected, and logged at severity level INFO
7e1782
       if ($Reason != 11) {$DisconnectReceived{$Reason}{$Host}++;}
7e1782
    } elsif ( my ($Host) = ($ThisLine =~ /^ROOT LOGIN REFUSED FROM ([^ ]*)$/)) {
7e1782
-- 
7e1782
2.7.2
7e1782