Module: check_mk
Branch: master
Commit: 5764e2dd745d75db42a8245b7281af5eaf738dee
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5764e2dd745d75…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 18 10:34:46 2013 +0100
Linux agent: limit netstat to 10 seconds
---
ChangeLog | 3 +++
agents/check_mk_agent.linux | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 26a6d59..c759304 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,9 @@
* New editor for Business Intelligence rules
1.2.2b4:
+ Checks & Agents:
+ * Linux agent: limit netstat to 10 seconds
+
BI:
* FIX: fixed invalid links to hosts and services in BI tree view
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 73b80a1..27dc5d9 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -180,7 +180,7 @@ fi
# Number of TCP connections in the various states
echo '<<<tcp_conn_stats>>>'
-netstat -nt | awk ' /^tcp/ { c[$6]++; } END { for (x in c) { print x, c[x]; } }'
+waitmax 10 netstat -nt | awk ' /^tcp/ { c[$6]++; } END { for (x in c) { print x,
c[x]; } }'
# Platten- und RAID-Status von LSI-Controlleren, falls vorhanden
if type cfggen > /dev/null ; then