Module: check_mk
Branch: master
Commit: 3756327332c3985c43517d3fbb8ff5791b6b1b07
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3756327332c398…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Mar 21 15:07:52 2016 +0100
Speedup interactive graph zooming/panning in case of multi-language environment
---
web/htdocs/modules.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/web/htdocs/modules.py b/web/htdocs/modules.py
index …
[View More]1b8e064..6096433 100644
--- a/web/htdocs/modules.py
+++ b/web/htdocs/modules.py
@@ -96,11 +96,26 @@ def init_modules():
modules += [ globals()[m] for m in set(imports()).difference(module_names_prev) ]
+g_all_modules_loaded = False
+
# Call the load_plugins() function in all modules
def load_all_plugins():
+ global g_all_modules_loaded
+
+ # CLEANUP: Move this to the pagehandlers if this concept works out.
+ if html.myfile == "ajax_graph" and g_all_modules_loaded:
+ only_modules = ["metrics"]
+ else:
+ only_modules = None
+
+ g_all_modules_loaded = True
+
+
need_plugins_reload = local_web_plugins_have_changed()
for module in modules:
+ if only_modules != None and get_module_name(module) not in only_modules:
+ continue
try:
module.load_plugins # just check if this function exists
except AttributeError:
[View Less]
Module: check_mk
Branch: master
Commit: 755a99f7621e78e2af7a9440f9c06bd74c350470
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=755a99f7621e78…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 21 13:30:28 2016 +0100
3301 FIX mrpe: Fixed exception "urllib not defined" when using Nagios as core
---
.werks/3301 | 10 ++++++++++
ChangeLog | 1 +
checks/mrpe | 2 ++
3 files changed, 13 insertions(+)
diff --git a/.werks/3301 b/.werks/3301
…
[View More]new file mode 100644
index 0000000..652b58c
--- /dev/null
+++ b/.werks/3301
@@ -0,0 +1,10 @@
+Title: mrpe: Fixed exception "urllib not defined" when using Nagios as core
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1458563402
+
+
diff --git a/ChangeLog b/ChangeLog
index 5536aff..1407d2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,6 +94,7 @@
* 3298 FIX: winperf_processor.util: Fixed exception when CPU counters were not matched
* 3299 FIX: mssql_backup: Fixed exception in case of invalid agent output
* 3300 FIX: zfsget: Fixed excluding snapshots from zfsget section
+ * 3301 FIX: mrpe: Fixed exception "urllib not defined" when using Nagios as core
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/mrpe b/checks/mrpe
index d9232f3..118fbeb 100644
--- a/checks/mrpe
+++ b/checks/mrpe
@@ -25,6 +25,7 @@
# Boston, MA 02110-1301 USA.
def inventory_mrpe(info):
+ import urllib
items = []
for line in info:
# New Linux agent sends (check_name) in first column. Stay
@@ -45,6 +46,7 @@ def mrpe_parse_perfdata(perfinfo):
def check_mrpe(item, params, info):
+ import urllib
# This check is cluster-aware. An item might be found
# more than once. In that case we use the best of the
# multiple statuses.
[View Less]