Module: check_mk
Branch: master
Commit: 0ed906479e9d533c5da82b947fe0be8fdfe59fc3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0ed906479e9d53…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jul 23 11:16:05 2013 +0200
win_netstat: correct splitting of ipv6 adresses
---
checks/win_netstat | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/win_netstat b/checks/win_netstat
index 76876c2..5cdba4a 100644
--- a/checks/win_netstat
+++ b/checks/win_netstat
@@ -71,7 +71,7 @@ def parse_win_netstat(info):
connstate = "LISTEN"
else:
continue
- connections.append( (proto, local.split(":"),
remote.split(":"),
+ connections.append( (proto, local.rsplit(":", 1),
remote.rsplit(":", 1),
win_netstat_states.get(connstate, connstate)) )
return connections