[checkmk-commits] Check_MK Git: check_mk: FreeBSD Agent: tcp_conn_stats no longer looking at wrong value

git version control git at mathias-kettner.de
Sat Nov 17 19:38:13 CET 2012


Module: check_mk
Branch: master
Commit: 7897c335b3087225fa6b4248e494ab653f684f23
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7897c335b3087225fa6b4248e494ab653f684f23

Author: Florian Heigl <fh at mathias-kettner.de>
Date:   Sat Nov 17 19:36:44 2012 +0100

FreeBSD Agent: tcp_conn_stats no longer looking at wrong value

---

 agents/check_mk_agent.freebsd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/agents/check_mk_agent.freebsd b/agents/check_mk_agent.freebsd
index f6b863f..7a16ddc 100755
--- a/agents/check_mk_agent.freebsd
+++ b/agents/check_mk_agent.freebsd
@@ -266,7 +266,7 @@ fi
 
 # Number of TCP connections in the various states
 echo '<<<tcp_conn_stats>>>'
-netstat -na | awk ' /^tcp/ { c[$7]++; } END { for (x in c) { print x, c[x]; } }'
+netstat -na | awk ' /^tcp/ { c[$6]++; } END { for (x in c) { print x, c[x]; } }'
 
 
 # Postfix mailqueue monitoring



More information about the checkmk-commits mailing list