[checkmk-commits] Check_MK Git: check_mk: FreeBSD agent: send tcp connection stats

git version control git at mathias-kettner.de
Thu Nov 15 18:48:58 CET 2012


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

Author: Florian Heigl <fh at mathias-kettner.de>
Date:   Thu Nov 15 18:48:54 2012 +0100

FreeBSD agent: send tcp connection stats

---

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

diff --git a/agents/check_mk_agent.freebsd b/agents/check_mk_agent.freebsd
index 81f681a..f6b863f 100755
--- a/agents/check_mk_agent.freebsd
+++ b/agents/check_mk_agent.freebsd
@@ -264,6 +264,11 @@ fi
 #  done
 #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]; } }'
+
+
 # Postfix mailqueue monitoring
 #
 # Only handle mailq when postfix user is present. The mailq command is also



More information about the checkmk-commits mailing list