Module: check_mk
Branch: master
Commit: f9433767382fb2aecce810805f5fd7d4a4d49ca7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f9433767382fb2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 13 15:05:23 2012 +0200
BI: add test comments
---
web/htdocs/bi.py | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 6df9a41..79870d2 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -198,6 +198,8 @@ def compile_forest(user):
}
g_user_cache = cache
+ # before = time.time()
+
for entry in config.aggregations:
if len(entry) < 3:
raise MKConfigError("<h1>Invalid aggregation
<tt>%s</tt></h1>"
@@ -240,6 +242,9 @@ def compile_forest(user):
# Remember successful compile in cache
g_cache[user] = cache
+ # after = time.time()
+ # file("/tmp/bi.perf", "a").write("Dauer: %.3f sec\n" %
(after - before))
+
# Execute an aggregation rule, but prepare arguments
# and iterate FOREACH first
@@ -672,6 +677,15 @@ def compile_leaf_node(host_re, service_re = config.HOST_STATE):
"host" : (site, hostname)})
else:
+ # found.append({"type" : NT_LEAF,
+ # "reqhosts" : [(site, hostname)],
+ # "host" : (site, hostname),
+ # "service" : "FOO",
+ # "title" : "Foo bar",
+ # })
+ # continue
+
+
for service in services:
mo = (service_re, service)
if mo in service_nomatch_cache: