Module: check_mk
Branch: master
Commit: fb3c6c5b84dbd46510090c0c578ad88e5e575d8c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fb3c6c5b84dbd4…
Author: Florian Heigl <fh(a)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