Module: check_mk
Branch: master
Commit: 47e86381768c79f382ce3f89c7d82cf123a1bef0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=47e86381768c79…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 7 23:29:46 2013 +0200
FIX: check_mk_agent.linux: limit Livestatus check to 3 seconds
---
ChangeLog | 1 +
agents/check_mk_agent.linux | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 451d601..8f9a4e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,7 @@
(typo in tag)
* FIX: netapp_volumes: better output when volume is missing
* FIX: winperf_phydisk: handle case where not performance counters are available
+ * FIX: check_mk_agent.linux: limit Livestatus check to 3 seconds
Multisite:
* FIX: add missing service icons to view "All Services with this descr..."
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index e76e27c..cfdce00 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -459,7 +459,7 @@ then
do
if [ -S "/omd/sites/$site/tmp/run/live" ] ; then
echo "[$site]"
- echo -e "GET status" | /omd/sites/$site/bin/unixcat
/omd/sites/$site/tmp/run/live
+ echo -e "GET status" | waitmax 3 /omd/sites/$site/bin/unixcat
/omd/sites/$site/tmp/run/live
fi
done
fi