Module: check_mk
Branch: master
Commit: cc130b026a278c58a1c23aa04672283ed1b53d4e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cc130b026a278c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 20 13:42:07 2017 +0200
Removed useless globals
Change-Id: I9c21205992ac9639625bb09c66fe506f7741fade
---
web/htdocs/userdb.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/web/htdocs/userdb.py b/web/htdocs/userdb.py
index 46d9895..3577162 100644
--- a/web/htdocs/userdb.py
+++ b/web/htdocs/userdb.py
@@ -50,8 +50,6 @@ multisite_user_connectors = {}
# Load all userdb plugins
def load_plugins(force):
- global user_attributes
- global multisite_user_connectors
global builtin_user_attribute_names
# Do not cache the custom user attributes. They can be created by the user
Module: check_mk
Branch: master
Commit: 8879bcd3cba7f9c692d3fad098aa10eb1e8df016
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8879bcd3cba7f9…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Jul 20 13:21:53 2017 +0200
5021 FIX Make sure that the output of the event console active check is valid
It was possible that part of the check output looked like (incorrectly
formatted) performance data, confusing other parts of Check_MK, e.g. the
graphing subsystem. This has been fixed.
Change-Id: I5d1798891919c6cc1be440255d865317978f8663
---
.werks/5021 | 12 +++
active_checks/check_mkevents.cc | 173 +++++++++++++++++++++-------------------
2 files changed, 104 insertions(+), 81 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=8879bcd3cb…
Module: check_mk
Branch: master
Commit: e5b91cf654a0097ec038464f0c080508e3cc7062
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e5b91cf654a009…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 20 11:11:33 2017 +0200
5001 FIX PDF exports: Default graph layout options were not applied
When creating an "intant report" (PDF export of a view) the default graph
layout options were not applied to the graphs displayed in the report.
Change-Id: I90bbd998905c7a5aab92ec90fd19ce623838c8e9
---
.werks/5001 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.werks/5001 b/.werks/5001
new file mode 100644
index 0000000..d36d867
--- /dev/null
+++ b/.werks/5001
@@ -0,0 +1,12 @@
+Title: PDF exports: Default graph layout options were not applied
+Level: 1
+Component: reporting
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.5.0i1
+Date: 1500541729
+
+When creating an "intant report" (PDF export of a view) the default graph
+layout options were not applied to the graphs displayed in the report.
Module: check_mk
Branch: master
Commit: 780791473a71c6c01b4f4b6ff5df8f2b414db6a6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=780791473a71c6…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jul 17 16:48:16 2017 +0200
4977 Improved displaying a great amount of contact groups in folder/host properties
Change-Id: Ib2d1fe129954d9ff5894e35be2d6e3d037e30d3e
---
.werks/4977 | 14 ++++++++++++++
web/htdocs/watolib.py | 21 +++++++++++++--------
2 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/.werks/4977 b/.werks/4977
new file mode 100644
index 0000000..66af248
--- /dev/null
+++ b/.werks/4977
@@ -0,0 +1,14 @@
+Title: Improved displaying a large number of contact groups in folder/host properties
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1500302729
+Class: feature
+
+If a large number of contact groups are configured
+these were displayed as a long list of checkboxes
+exceeding screensize.
+Now the available and selected contact groups are
+shown as parallel lists with fixed size and scrolling bar.
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 49150b5..b30bec0 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -3117,9 +3117,9 @@ class ContactGroupsAttribute(Attribute):
self._users = None
self._loaded_at = None
+
def paint(self, value, hostname):
value = convert_cgroups_from_tuple(value)
-
texts = []
self.load_data()
items = self._contactgroups.items()
@@ -3134,6 +3134,7 @@ class ContactGroupsAttribute(Attribute):
title=_("These contact groups are also used in the monitoring configuration."))
return "", result
+
def render_input(self, varprefix, value):
value = convert_cgroups_from_tuple(value)
@@ -3146,12 +3147,8 @@ class ContactGroupsAttribute(Attribute):
# Only show contact groups I'm currently in and contact
# groups already listed here.
self.load_data()
- items = self._contactgroups.items()
- items.sort(cmp = lambda a,b: cmp(a[1], b[1]))
- for name, group in items:
- html.checkbox(varprefix + self._name + "_n_" + name, name in value["groups"])
- html.a(group['alias'] if group['alias'] else name , href=folder_preserving_link([("mode", "edit_contact_group"), ("edit", name)]))
- html.br()
+ self._vs_contactgroups().render_input(varprefix + self._name + "_n_", value['groups'])
+
html.hr()
if is_host:
@@ -3183,9 +3180,9 @@ class ContactGroupsAttribute(Attribute):
if self._loaded_at == id(html):
return
self._loaded_at = id(html)
-
self._contactgroups = userdb.load_group_information().get("contact", {})
+
def from_html_vars(self, varprefix):
cgs = []
self.load_data()
@@ -3200,6 +3197,7 @@ class ContactGroupsAttribute(Attribute):
"recurse_use" : html.get_checkbox(varprefix + self._name + "_recurse_use"),
}
+
def filter_matches(self, crit, value, hostname):
value = convert_cgroups_from_tuple(value)
# Just use the contact groups for searching
@@ -3209,6 +3207,13 @@ class ContactGroupsAttribute(Attribute):
return True
+ def _vs_contactgroups(self):
+ cg_choices = sorted([(cg_id, cg_attrs.get("alias", cg_id))
+ for cg_id, cg_attrs in self._contactgroups.items()],
+ key=lambda x: x[1])
+ return DualListChoice(choices=cg_choices, rows=40, size=100)
+
+
def initialize_host_attribute_structures():
global g_host_attributes, g_host_attribute
g_host_attributes = []
Module: check_mk
Branch: master
Commit: e182c9ccb84b647f43ffc9b10a1544ff79a59dce
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e182c9ccb84b64…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Jul 19 17:08:54 2017 +0200
5010 FIX f5_bigip_mem.tmm: Fixed discovery warning on command line if TMM information is not provided by the device
The service has not been created and no impact could be noticed in WATO. But on
command line a warning showed up that there is an esception during discovering
services based on that check. This has been fixed now.
Change-Id: I1286092c10eb20841c13a6a159c855a3fdbe1a6e
---
.werks/5010 | 12 ++++++++++++
checks/f5_bigip_mem | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/5010 b/.werks/5010
new file mode 100644
index 0000000..37cd812
--- /dev/null
+++ b/.werks/5010
@@ -0,0 +1,12 @@
+Title: f5_bigip_mem.tmm: Fixed discovery warning on command line if TMM information is not provided by the device
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1500476578
+Class: fix
+
+The service has not been created and no impact could be noticed in WATO. But on
+command line a warning showed up that there is an esception during discovering
+services based on that check. This has been fixed now.
diff --git a/checks/f5_bigip_mem b/checks/f5_bigip_mem
index 17fa5b8..7062b67 100644
--- a/checks/f5_bigip_mem
+++ b/checks/f5_bigip_mem
@@ -71,7 +71,9 @@ check_info['f5_bigip_mem'] = {
}
def inventory_f5_bigip_mem_tmm(parsed):
- if not float(parsed["tmm"][0]) == 0:
+ mem = parsed["tmm"][0]
+ # Some devices obviously do not deliver this information...
+ if not mem == '' and not float(mem) == 0:
return [ ( "TMM", {} ) ]