Module: check_mk
Branch: master
Commit: 23065007a132e21e8e3b35182f4844fde8ae2e87
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=23065007a132e2…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Mar 29 12:59:36 2017 +0200
4467 FIX BI aggregation compilation: fixed race condition exception, also forks less processes for compilation
The compiliation process now spawns less worker processes for the compilation, which reduces the overall CPU load.
Furthermore a race condition has been fixed, which was likely to happen when all of these conditions were true:<br>
<ul>
<li>there were several dozens BI requests per minute, e.g. from multiple web browsers</li>
<li>a distributed montitoring setup started to deploy new configurations</li>
<li>there were lots (>100) of BI aggregations configured</li>
<ul>
Change-Id: I0145f39016b6ee52be0e71c857d8ffc278ba70b9
---
.werks/4467 | 17 +++
web/htdocs/bi.py | 322 ++++++++++++++++---------------------------------------
2 files changed, 110 insertions(+), 229 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=23065007a1…
Module: check_mk
Branch: master
Commit: af7a8e97562eebb84aaf971c4669d0eb1670db01
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=af7a8e97562eeb…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Mar 29 10:21:04 2017 +0200
made output similar to previous implementation
Change-Id: I2fa18b3a504ebbe2d0c0a580d5185b40c0db6a4b
---
agents/check_mk_agent.linux | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 80c5413..e44fb80 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -692,12 +692,12 @@ if type postfix >/dev/null ; then
if [ -e "$i/pid/master.pid" ]; then
postfix_pid=$(cat $i/pid/master.pid | sed 's/ //g') # handle possible spaces in output
if [[ $(readlink -- /proc/$postfix_pid/exe) == *"postfix/master"* ]]; then
- echo "$i:is running:PID:$postfix_pid" | sed 's/\/var\/spool\///g'
+ echo "$i:the Postfix mail system is running:PID:$postfix_pid" | sed 's/\/var\/spool\///g'
else
echo "$i:PID file exists but instance is not running!" | sed 's/\/var\/spool\///g'
fi
else
- echo "$i:not running" | sed 's/\/var\/spool\///g'
+ echo "$i:the Postfix mail system is not running" | sed 's/\/var\/spool\///g'
fi
done
fi