Module: check_mk
Branch: master
Commit: 679269384f43a3acc110373c47ff8c2483c690bf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=679269384f43a3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Nov 28 10:55:29 2011 +0100
Simplify custom dashboard in non-OMD
---
web/plugins/dashboard/builtin.py | 132 +++++++++++++++++++-------------------
1 files changed, 65 insertions(+), 67 deletions(-)
diff --git a/web/plugins/dashboard/builtin.py b/web/plugins/dashboard/builtin.py
index 7215a84..5b11088 100644
--- a/web/plugins/dashboard/builtin.py
+++ b/web/plugins/dashboard/builtin.py
@@ -24,71 +24,69 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-builtin_dashboards = {
- "main" : {
- "title" : _("Main Overview"),
- "dashlets" : [
-# {
-# "url" : "dashlet_mk_logo.py",
-# "position" : (1, 1),
-# "size" : (4, 5),
-# "shadow" : False,
-# "background" : False,
-# },
- {
- "title" : _("Host Statistics"),
- "url" : "dashlet_hoststats.py",
- "position" : (1, 1),
- "size" : (10, 6),
- "shadow" : True,
- "background" : True,
- "refresh" : 60,
- },
- {
- "title" : _("Service Statistics"),
- "url" : "dashlet_servicestats.py",
- "position" : (11, 1),
- "size" : (10, 6),
- "shadow" : True,
- "background" : True,
- "refresh" : 60,
- },
- {
- "title" : _("Host Problems"),
- "title_url" : "view.py?view_name=hostproblems",
- "view" : "hostproblems_dash", #
"view.py?view_name=hostproblems_dash&display_options=SIXHR&_body_class=dashlet",
- "position" : (-1, 1),
- "size" : (GROW, 6),
- },
- {
- "title" : _("Service Problems"),
- "title_url" : "view.py?view_name=svcproblems",
- "view" : "svcproblems_dash", #
"view.py?view_name=svcproblems_dash&display_options=SIXHR&_body_class=dashlet",
- "position" : (1, 7),
- "size" : (GROW, MAX),
- },
- {
- "title" : _("Events of recent 4 hours"),
- "title_url" : "view.py?view_name=events_dash",
- "view" : "events_dash", #
"view.py?view_name=events_dash&display_options=SIXHR&_body_class=dashlet",
- "position" : (-1, -1),
- "size" : (GROW, GROW),
- },
- # {
- # "title" : "CPU load of Nagios",
- # # "url" :
"http://localhost/dk/pnp4nagios/index.php/image?host=DerNagiosSelbst&srv=fs__var&view=0",
- # "url" :
"http://localhost/dk/pnp4nagios/index.php/popup?host=localhost&srv=CPU_load&view=0&source=2",
- # "position" : (1, -1),
- # "size" : (11, 5),
- # },
- # {
- # "title" : "CPU utilization of Nagios",
- # # "url" :
"http://localhost/dk/pnp4nagios/index.php/image?host=DerNagiosSelbst&srv=fs__var&view=0",
- # "url" :
"http://localhost/dk/pnp4nagios/index.php/popup?host=localhost&srv=CPU_utilization&view=0&source=2",
- # "position" : (12, -1),
- # "size" : (11, 5),
- # },
- # {
- ]
- }
+builtin_dashboards["main"] = {
+ "title" : _("Main Overview"),
+ "dashlets" : [
+# {
+# "url" : "dashlet_mk_logo.py",
+# "position" : (1, 1),
+# "size" : (4, 5),
+# "shadow" : False,
+# "background" : False,
+# },
+ {
+ "title" : _("Host Statistics"),
+ "url" : "dashlet_hoststats.py",
+ "position" : (1, 1),
+ "size" : (10, 6),
+ "shadow" : True,
+ "background" : True,
+ "refresh" : 60,
+ },
+ {
+ "title" : _("Service Statistics"),
+ "url" : "dashlet_servicestats.py",
+ "position" : (11, 1),
+ "size" : (10, 6),
+ "shadow" : True,
+ "background" : True,
+ "refresh" : 60,
+ },
+ {
+ "title" : _("Host Problems"),
+ "title_url" : "view.py?view_name=hostproblems",
+ "view" : "hostproblems_dash", #
"view.py?view_name=hostproblems_dash&display_options=SIXHR&_body_class=dashlet",
+ "position" : (-1, 1),
+ "size" : (GROW, 6),
+ },
+ {
+ "title" : _("Service Problems"),
+ "title_url" : "view.py?view_name=svcproblems",
+ "view" : "svcproblems_dash", #
"view.py?view_name=svcproblems_dash&display_options=SIXHR&_body_class=dashlet",
+ "position" : (1, 7),
+ "size" : (GROW, MAX),
+ },
+ {
+ "title" : _("Events of recent 4 hours"),
+ "title_url" : "view.py?view_name=events_dash",
+ "view" : "events_dash", #
"view.py?view_name=events_dash&display_options=SIXHR&_body_class=dashlet",
+ "position" : (-1, -1),
+ "size" : (GROW, GROW),
+ },
+ # {
+ # "title" : "CPU load of Nagios",
+ # # "url" :
"http://localhost/dk/pnp4nagios/index.php/image?host=DerNagiosSelbst&srv=fs__var&view=0",
+ # "url" :
"http://localhost/dk/pnp4nagios/index.php/popup?host=localhost&srv=CPU_load&view=0&source=2",
+ # "position" : (1, -1),
+ # "size" : (11, 5),
+ # },
+ # {
+ # "title" : "CPU utilization of Nagios",
+ # # "url" :
"http://localhost/dk/pnp4nagios/index.php/image?host=DerNagiosSelbst&srv=fs__var&view=0",
+ # "url" :
"http://localhost/dk/pnp4nagios/index.php/popup?host=localhost&srv=CPU_utilization&view=0&source=2",
+ # "position" : (12, -1),
+ # "size" : (11, 5),
+ # },
+ # {
+ ]
}