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):
Module: check_mk
Branch: master
Commit: cb40b47d363f7935dcc37ff2376d75ac4d07deff
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cb40b47d363f79…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 27 14:01:21 2017 +0100
Combined graphs: updated internal notes
Change-Id: If7977737362ed506d691331f844080904b5865a8
---
ZUTUN.graphing | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index e41d8d0..fa2cc1c 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -36,9 +36,6 @@
von den normalen Templates.
-[17] au: Explizite Reihenfolge der Knöpfe festlegen.
-
-
[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.
@@ -48,6 +45,9 @@
Zeitbereich beibehalten. Geht das überhaupt?
+TESTEN
+--------------------------------------------------------------------------------
+
[20] Test CEE mit Nagios als Kern
[21] Test CRE (Knopf darf nicht kommen)
Module: check_mk
Branch: master
Commit: b2ff7d21b00a301064459df31105a167c04a725f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b2ff7d21b00a30…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Mon Feb 27 14:09:58 2017 +0100
Combined graphs: RImpoving time series operators
---
ZUTUN.graphing | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index 2c4bc0f..7ced761 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -1,8 +1,3 @@
-[3] au: Implementierung von "Average": einfach die kleine Funktion
- au: schreiben, die auch None korrekt berücksichtig. Dann
- au: im Graphdesigner das Average auch einbauen.
-
-
[6] Graph zu Dashboard hinzufügen.
@@ -20,7 +15,7 @@
sonst stacked. Beispiel zum Testen: Filesystem-Graph. Bei Sum kommt
aktuell nur die Hälfte raus wie bei Stacked - sollte aber ja das
gleiche Ergebnis zeigen.
-
+ au: Aktueller Status: Umgesetzt fuer "area"
[12] Limit auf Menge der dargestellten Objekte.
Module: check_mk
Branch: master
Commit: 7790348f51a29fc9bbb0bd7ccc5f80ca33c199be
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7790348f51a29f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 24 13:37:40 2017 +0100
Combined graphs: create better titles for the graphs
Change-Id: I819c6f049f61a453566497702a9d1e474473b6c3
---
ZUTUN.graphing | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index e743eea..e41d8d0 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -3,9 +3,6 @@
au: im Graphdesigner das Average auch einbauen.
-[4] Titel der Graphen selbst
-
-
[6] Graph zu Dashboard hinzufügen.
@@ -19,8 +16,10 @@
[10] Graphen mit mehreren Areas, saubere Stacks bilden.
- Wenn die erste metrik line oder area ist, nimmt man area,
- sonst stacked.
+ Wenn die erste Metrik line oder area ist, nimmt man area,
+ sonst stacked. Beispiel zum Testen: Filesystem-Graph. Bei Sum kommt
+ aktuell nur die Hälfte raus wie bei Stacked - sollte aber ja das
+ gleiche Ergebnis zeigen.
[12] Limit auf Menge der dargestellten Objekte.
Module: check_mk
Branch: master
Commit: d0063f95bc83bd4981fc18a820b69f5edccbcc75
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d0063f95bc83bd…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 24 09:25:57 2017 +0100
Cominbed graphs: restructured function, split it up
Change-Id: Iba37e7578f0d1b43e55198177574e0ef80dc4b19
---
ZUTUN.graphing | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index 98851ef..0ea3326 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -5,16 +5,6 @@
zu machen.
-[2] mk: Farbabstufungen für "lines":
- mk: Hier einfach auf die Originalfarben ganz verzichten und
- mk: Palettenfarben verwenden. Dazu den Code angucken, wo wir
- mk: die Palatte definieren ("21/a", "22/a", ....). Daraus einen
- mk: Kreis bauen. Dann die Anzahl der Punkte im Kreis durch die
- mk: Anzahl der Kurven teilen und die Abstände dadurch so groß
- mk: wie möglich machen. Wenn wir mehr Kurven als Farben haben,
- mk: müssen wir mehrfach im Kreis "rumfahren".
-
-
[3] au: Implementierung von "Average": einfach die kleine Funktion
au: schreiben, die auch None korrekt berücksichtig. Dann
au: im Graphdesigner das Average auch einbauen.
Module: check_mk
Branch: master
Commit: f16febe3f3bf3708e4dbc63f56bd7c188b3c69ee
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f16febe3f3bf37…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 23 13:26:23 2017 +0100
Combined graphs: handle implicit templates correctly
Change-Id: Ic302bd62c3ee096346209fd4657752997d3cd804
---
ZUTUN.graphing | 32 ++++++++++++++------------------
web/htdocs/metrics.py | 8 ++++++++
2 files changed, 22 insertions(+), 18 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index 12c8392..1755fa0 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -23,12 +23,12 @@
[4] Titel der Graphen selbst
-[5] Titel der einzelnen Metriken. Hierbei berücksichtigen,
- ob alle Kurven vom gleichen Host oder Service kommen.
- Frage klären, ob eventuell sogar der Name der Metrik
- auch weggealssen wird - z.B. wenn der Graph nur eine
- einzige Metrik zeigt und diese schon im Graph-Titel
- zu sehen ist.
+[5] au:Titel der einzelnen Metriken. Hierbei berücksichtigen,
+ au:ob alle Kurven vom gleichen Host oder Service kommen.
+ au:Frage klären, ob eventuell sogar der Name der Metrik
+ au:auch weggealssen wird - z.B. wenn der Graph nur eine
+ au:einzige Metrik zeigt und diese schon im Graph-Titel
+ au:zu sehen ist.
[6] Graph zu Dashboard hinzufügen.
@@ -44,39 +44,35 @@
[10] Graphen mit mehreren Areas, saubere Stacks bilden.
- Wenn die erste metrik line oder area ist, nimmt man area,
- sonst stacked.
+ Wenn die erste metrik line oder area ist, nimmt man area,
+ sonst stacked.
[11] Erkennung ob combined_graphs möglich sind (web/htdocs/config.py)
- sauber machen.
+ sauber machen.
[12] Limit auf Menge der dargestellten Objekte.
[13] Graphen von Hosts. Dazu den Hostcheck auf "PING" ändern, echte
- Metriken sammeln.
+ Metriken sammeln.
[14] Import views und visuals irgendwie aufrüamen
[15] Seite der Combined graphs: Hier muss der Titel der View irgendwie noch
- sauber rein. Eventuell einfach den Titel in einer URL-Variable mitschleifen.
- Auch die Art der Darstellung (Summe, etc.) muss im Titel stehen.
+ sauber rein. Eventuell einfach den Titel in einer URL-Variable mitschleifen.
+ Auch die Art der Darstellung (Summe, etc.) muss im Titel stehen.
[16] Prüfung auf eine einheitliche Unit? Brauchen wir das? Im Originalcode ist
- von den normalen Templates.
+ von den normalen Templates.
[17] Explizite Reihenfolge der Knöpfe festlegen.
[18] Default festlegen, wenn man auf die Seite kommt. Sollen wir einfach "Summe"
- nehmen?
-
-
-[19] Implizite Schablonenen ala "METRIC_..." umsetzen.
-
+ nehmen?
diff --git a/web/htdocs/metrics.py b/web/htdocs/metrics.py
index 0d918a2..7986b53 100644
--- a/web/htdocs/metrics.py
+++ b/web/htdocs/metrics.py
@@ -1044,6 +1044,14 @@ def generic_graph_template(metric_name):
]
}
+def get_graph_template(template_id):
+ if template_id.startswith("METRIC_"):
+ return generic_graph_template(template_id[7:])
+ elif template_id in graph_info:
+ return graph_info[template_id]
+ else:
+ raise MKGeneralException(_("There is no graph template with the id '%d'") % template_id)
+
def get_graph_range(graph_template, translated_metrics):
if "range" not in graph_template:
Module: check_mk
Branch: master
Commit: cdd53c541689f54dbd58d1538aef7bc6a69ff781
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cdd53c541689f5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 23 11:48:42 2017 +0100
Combined graphs: added TODO-List for internal use
Change-Id: Ia7ff9fe1c77cdb1125da47bcd2fc078dc13c1233
---
ZUTUN.graphing | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 82 insertions(+)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
new file mode 100644
index 0000000..15dc407
--- /dev/null
+++ b/ZUTUN.graphing
@@ -0,0 +1,82 @@
+[1] Farbabstufungen "stacked".
+ "stacked": Pro Farbe zwei Schattierungen. Bei den hellen
+ Farben eine dunklere. Bei den dunklen Farben eine hellere.
+ Es gibt schon Funktionen, um eine Farbe dunkler bzw. heller
+ zu machen.
+
+
+[2] Farbabstufungen für "lines":
+ Hier einfach auf die Originalfarben ganz verzichten und
+ Palettenfarben verwenden. Dazu den Code angucken, wo wir
+ die Palatte definieren ("21/a", "22/a", ....). Daraus einen
+ Kreis bauen. Dann die Anzahl der Punkte im Kreis durch die
+ Anzahl der Kurven teilen und die Abstände dadurch so groß
+ wie möglich machen. Wenn wir mehr Kurven als Farben haben,
+ müssen wir mehrfach im Kreis "rumfahren".
+
+
+[3] Implementierung von "Average": einfach die kleine Funktion
+ schreiben, die auch None korrekt berücksichtig. Dann
+ im Graphdesigner das Average auch einbauen.
+
+
+[4] Titel der Graphen selbst
+
+
+[5] Titel der einzelnen Metriken. Hierbei berücksichtigen,
+ ob alle Kurven vom gleichen Host oder Service kommen.
+ Frage klären, ob eventuell sogar der Name der Metrik
+ auch weggealssen wird - z.B. wenn der Graph nur eine
+ einzige Metrik zeigt und diese schon im Graph-Titel
+ zu sehen ist.
+
+
+[6] Graph zu Dashboard hinzufügen.
+
+
+[7] Graph zu Report hinzufügen.
+
+
+[8] Graph zu "GraphCollections" hinzufügen.
+
+
+[9] Fall, dass ein Graph negative Metrik hat ("-line", "-area", "-stacked")
+
+
+[10] Graphen mit mehreren Areas, saubere Stacks bilden.
+ Wenn die erste metrik line oder area ist, nimmt man area,
+ sonst stacked.
+
+
+[11] Erkennung ob combined_graphs möglich sind (web/htdocs/config.py)
+ sauber machen.
+
+
+[12] Limit auf Menge der dargestellten Objekte.
+
+
+[13] Graphen von Hosts. Dazu den Hostcheck auf "PING" ändern, echte
+ Metriken sammeln.
+
+
+[14] Import views und visuals irgendwie aufrüamen
+
+
+[15] Seite der Combined graphs: Hier muss der Titel der View irgendwie noch
+ sauber rein. Eventuell einfach den Titel in einer URL-Variable mitschleifen.
+ Auch die Art der Darstellung (Summe, etc.) muss im Titel stehen.
+
+
+[16] Prüfung auf eine einheitliche Unit? Brauchen wir das? Im Originalcode ist
+ von den normalen Templates.
+
+
+[17] Explizite Reihenfolge der Knöpfe festlegen.
+
+
+[18] Default festlegen, wenn man auf die Seite kommt. Sollen wir einfach "Summe"
+ nehmen?
+
+
+[19] Implizite Schablonenen ala "METRIC_..." umsetzen.
+