Module: check_mk
Branch: master
Commit: 6a886c471038c86cf45390586b1ad5187a86a7b7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a886c471038c8…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 2 12:43:42 2014 +0200
New snapin with virtual host trees
We have added a new snapin to Multisite: <i>Virtual Host Tree</i>. This snapin allows you to
have trees of your hosts created based upon tags. In order to use this simply add the snapin
to your sidebar and go to the <i>Global Settings</i>, section <i>Status GUI (Multisite)</i>
and the new setting <i>Virtual Host Trees</i>.
You can create an arbitrary number of virtual trees. They will be globally visible for
all users. Each tree consists of a sequence of tag groups. Let's assume that you have
created a virtual tree from the three fictive tag groups <i>Location</i>, <i>Application</i>
and <i>Criticality</i>. The virtual host tree will then have tree levels. At the
top level there is the selection of the location, on the second level the application
and on the leaf-level the criticality.
A click of an arbitrary node of the tree brings you to all hosts having the selected
tags.
---
.werks/963 | 21 +++
ChangeLog | 1 +
web/htdocs/js/checkmk.js | 21 ++-
web/htdocs/js/sidebar.js | 7 +
web/htdocs/sidebar.css | 2 +-
web/htdocs/sidebar.py | 7 +
web/htdocs/valuespec.py | 46 +++++--
web/htdocs/wato.py | 1 +
web/plugins/config/builtin.py | 3 +
web/plugins/pages/shipped.py | 1 +
web/plugins/sidebar/shipped.py | 192 ++++++++++++++++++++++++++++
web/plugins/sidebar/wato.py | 1 +
web/plugins/views/builtin.py | 4 +-
web/plugins/wato/check_mk_configuration.py | 37 ++++++
14 files changed, 324 insertions(+), 20 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=6a886c4710…
Module: check_mk
Branch: master
Commit: 9db384d40f4d42190df1da9909923cd2697fe001
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9db384d40f4d42…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 2 11:49:17 2014 +0200
Save transids only for one day
This avoid long page loading times when too many trans ids
are being created
---
web/htdocs/htmllib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 45df4af..2cac2e1 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -974,7 +974,7 @@ class html:
now = time.time()
for valid_id in valid_ids:
timestamp, rand = valid_id.split("/")
- if now - int(timestamp) < 604800: # 7 * 24 hours
+ if now - int(timestamp) < 86400: # one day
cleared_ids.append(valid_id)
self.save_transids(cleared_ids + self.new_transids, unlock = True)