Module: check_mk
Branch: master
Commit: 93e123ac21cabbfdfcdc9bcce4f8a518e7f2338a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=93e123ac21cabb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 24 10:37:12 2017 +0100
Combined graphs: more clean detection of these are available
Change-Id: I736c88c907287cd2cbad334586b3c167a7973d52
---
ZUTUN.graphing | 18 ++++++++++--------
web/htdocs/config.py | 7 +++++--
2 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index 132c293..e743eea 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -23,10 +23,6 @@
sonst stacked.
-[11] Erkennung ob combined_graphs möglich sind (web/htdocs/config.py)
- sauber machen.
-
-
[12] Limit auf Menge der dargestellten Objekte.
@@ -44,9 +40,15 @@
[17] au: Explizite Reihenfolge der Knöpfe festlegen.
-[18] Default festlegen, wenn man auf die Seite kommt. Sollen wir einfach
"Summe"
- nehmen?
+[18] au: Default festlegen, wenn man auf die Seite kommt. Wenn die Variable
+ "presentation" nicht da ist, soll er einfache "Summe" nehmen.
Bei
+ den Links von den Views dann "presentation" weglassen.
+
+
+[19] Umswitchen der Darstellungsarten über die Knöpfe soll den gewählten
+ Zeitbereich beibehalten. Geht das überhaupt?
+
+[20] Test CEE mit Nagios als Kern
-[19] Umswitchen der Darstellungsarten über die Knöpfe soll den gewählten Zeitbereich
beibehalten.
- Geht das überhaupt?
+[21] Test CRE (Knopf darf nicht kommen)
diff --git a/web/htdocs/config.py b/web/htdocs/config.py
index 67b8543..3b625cd 100644
--- a/web/htdocs/config.py
+++ b/web/htdocs/config.py
@@ -162,8 +162,11 @@ def reporting_available():
def combined_graphs_available():
- # HIRN: Really detect
- return True
+ try:
+ have_combined_graphs
+ return True
+ except:
+ return False
def hide_language(lang):