Module: check_mk
Branch: master
Commit: f07ed44c15e2c2b16549b9db9c58e74eb137cdc0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f07ed44c15e2c2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 4 11:53:36 2016 +0100
4041 FIX Fix exception when editing global configuration settings
The exception just happened when you clicked on the name of the
configuration variable. If you clicked on the value everything is
fine.
---
.werks/4041 | 11 +++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 4 ++--
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/4041 b/.werks/4041
new file mode 100644
index 0000000..ead0605
--- /dev/null
+++ b/.werks/4041
@@ -0,0 +1,11 @@
+Title: Fix exception when editing global configuration settings
+Level: 2
+Component: wato
+Compatible: compat
+Version: 1.4.0i2
+Date: 1478256770
+Class: fix
+
+The exception just happened when you clicked on the name of the
+configuration variable. If you clicked on the value everything is
+fine.
diff --git a/ChangeLog b/ChangeLog
index c203be1..2d765e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -70,6 +70,7 @@
* 3821 FIX: WATO Network Scan: Fixed risk of loosing site tags when performing a network scan...
* 3951 FIX: oracle_sessions: fixed bug with default absolute levels...
* 4039 FIX: Fix UnicodeEncodeError exception in WATO folder display...
+ * 4041 FIX: Fix exception when editing global configuration settings...
Notifications:
* 3957 mail: now allows extra HTML section between body and table
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 95375d4..3501720 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6475,9 +6475,9 @@ def render_global_configuration_variables(group_names, default_values, current_s
edit_url = folder_preserving_link([("mode", edit_mode),
("varname", varname),
("site", html.var("site", ""))])
- title = '<a href="%s" class=%s title="%s">%s</a>' % \
+ title = HTML('<a href="%s" class=%s title="%s">%s</a>' % \
(edit_url, varname in current_settings and '"modified"' or '""',
- html.strip_tags(help_text), title_text)
+ html.strip_tags(help_text), title_text))
if varname in current_settings:
to_text = valuespec.value_to_text(current_settings[varname])
Module: check_mk
Branch: master
Commit: 44cf19c81394be4a3c381a41b464670ec9af027e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=44cf19c81394be…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Fri Nov 4 11:45:14 2016 +0100
3952 FIX diskstat: fixed bug if multipath devices having an alias
Previously detectiong of multipath devices has only been working if there is no alias for these devices. This Bug is now fixed.
---
.werks/3952 | 9 +++++++++
ChangeLog | 1 +
checks/diskstat | 8 +++++++-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/3952 b/.werks/3952
new file mode 100644
index 0000000..503870a
--- /dev/null
+++ b/.werks/3952
@@ -0,0 +1,9 @@
+Title: diskstat: fixed bug if multipath devices having an alias
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i2
+Date: 1478255992
+Class: fix
+
+Previously detectiong of multipath devices has only been working if there is no alias for these devices. This Bug is now fixed.
diff --git a/ChangeLog b/ChangeLog
index 39a5f8d..c203be1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,7 @@
* 3741 FIX: omd_status: Fix labelling and structure of several metric graphs
* 3986 FIX: esx_vsphere_counters.uptime: fixed incorrect alert when receiving corrupted counter data...
* 3987 FIX: Check_MK Agent Access: Windows agent reported incorrect only from value
+ * 3952 FIX: diskstat: fixed bug if multipath devices having an alias...
Multisite:
* 3959 Two new filters for the comment view: author and comment text field
diff --git a/checks/diskstat b/checks/diskstat
index 981e358..b2681d2 100644
--- a/checks/diskstat
+++ b/checks/diskstat
@@ -304,7 +304,8 @@ def diskstat_convert_info(parsed):
# with multipath names like "SDataCoreSANsymphony_DAT07-fscl"
if multipath_info:
for uuid, multipath in multipath_info.items():
- if multipath["device"] in converted_disks:
+ if multipath["device"] in converted_disks or \
+ "DM %s" % multipath["alias"] in converted_disks:
for path in multipath["paths"]:
if path in converted_disks:
del converted_disks[path]
@@ -313,6 +314,11 @@ def diskstat_convert_info(parsed):
converted_disks[uuid] = converted_disks[multipath["device"]]
del converted_disks[multipath["device"]]
+ if "DM %s" % multipath["alias"] in converted_disks:
+ alias = "DM %s" % multipath["alias"]
+ converted_disks[uuid] = converted_disks[alias]
+ del converted_disks[alias]
+
# Remove any left-over device mapper devices that are not part of a
# known multipath device, LVM device or whatever
for device in converted_disks.keys():
Module: check_mk
Branch: master
Commit: ae3fcd7c3a476b4e476f9a369f9cc82ac7be2e7e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ae3fcd7c3a476b…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Fri Nov 4 11:37:09 2016 +0100
made functions more understandable
---
checks/diskstat | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/checks/diskstat b/checks/diskstat
index 229bf4a..981e358 100644
--- a/checks/diskstat
+++ b/checks/diskstat
@@ -292,9 +292,9 @@ def diskstat_extract_name_info(info):
return timestamp, info_plain, name_info
-def diskstat_convert_info(info):
- disks, multipath_info = info
- converted_disks = dict(disks.items()) # we must not mody info!
+def diskstat_convert_info(parsed):
+ disks, multipath_info = parsed
+ converted_disks = dict(disks.items()) # we must not modify info!
# If we have information about multipathing, then remove the
# physical path devices from the disks array. But only do this,
@@ -322,8 +322,8 @@ def diskstat_convert_info(info):
return converted_disks
-def inventory_diskstat(info):
- converted_disks = diskstat_convert_info(info)
+def inventory_diskstat(parsed):
+ converted_disks = diskstat_convert_info(parsed)
# Use generic diskstat inventory function that is used also for other
# Disk IO checks. That expects a table of (node, device, ...)
Module: check_mk
Branch: master
Commit: a776d02d1b0c98cbbd5a92b8fe54acf02bda04e3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a776d02d1b0c98…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 4 11:32:34 2016 +0100
4040 Fix error in view about "No WATO folder ..." in case of host imported via cmcdump
---
.werks/4040 | 11 +++++++++++
ChangeLog | 1 +
web/plugins/views/wato.py | 6 +++++-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.werks/4040 b/.werks/4040
new file mode 100644
index 0000000..7627639
--- /dev/null
+++ b/.werks/4040
@@ -0,0 +1,11 @@
+Title: Fix error in view about "No WATO folder ..." in case of host imported via cmcdump
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i2
+Date: 1478255430
+Class: fix
+
+If you import a host with <tt>cmcdump</tt> and that host has a folder that is not
+present on the central system then a red error message was printed and the layout
+of the view was broken. This has been fixed.
diff --git a/ChangeLog b/ChangeLog
index 2c6e35f..39a5f8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -59,6 +59,7 @@
* 4037 FIX: Fix graphs that have optional metrics...
* 3973 FIX: Backup: Fixed displaying wrong finish time after backup completion
* 3974 FIX: Sorting comments in hover menu of comments icon by time now
+ * 4040 FIX: Fix error in view about "No WATO folder ..." in case of host imported via cmcdump...
WATO:
* 3915 User access times: New icon when never logged in; New column "last seen"
diff --git a/web/plugins/views/wato.py b/web/plugins/views/wato.py
index 16c6eb2..7b1316a 100644
--- a/web/plugins/views/wato.py
+++ b/web/plugins/views/wato.py
@@ -39,7 +39,11 @@ def get_wato_folder(row, how, with_links = True):
if not filename.startswith("/wato/") or not filename.endswith("/hosts.mk"):
return ""
wato_path = filename[6:-9]
- title_path = wato.get_folder_title_path(wato_path, with_links)
+ try:
+ title_path = wato.get_folder_title_path(wato_path, with_links)
+ except Exception, e:
+ return "%s" % e
+
if how == "plain":
return title_path[-1]
elif how == "abs":