Module: check_mk
Branch: master
Commit: c006f30b9176ebb0562efa660024adf58e46932f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c006f30b9176eb…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Aug 11 15:28:01 2016 +0200
3782 FIX agent_netapp: fixed exception with values containing umlauts
---
.werks/3782 | 9 +++++++++
ChangeLog | 1 +
agents/special/agent_netapp | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3782 b/.werks/3782
new file mode 100644
index 0000000..3598ad7
--- /dev/null
+++ b/.werks/3782
@@ -0,0 +1,9 @@
+Title: agent_netapp: fixed exception with values containing umlauts
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i1
+Date: 1470922034
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 8c2c54d..ac02ae2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -331,6 +331,7 @@
* 3772 FIX: ipmi_sensors: fixed missing states
* 3562 FIX: agent_vsphere.pysphere: fixed problems related to ssl certificate
validation on older distributions/python versions
* 3773 FIX: check_http: fixed proxy authentication
+ * 3782 FIX: agent_netapp: fixed exception with values containing umlauts
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/agents/special/agent_netapp b/agents/special/agent_netapp
index 618ef6d..13cb323 100755
--- a/agents/special/agent_netapp
+++ b/agents/special/agent_netapp
@@ -248,7 +248,7 @@ def format_config(instances, prefix, config_key, config_report =
"all",
if value and (extra_info_report == "all" or key in
extra_info_report):
line.append("%s %s" % (key, value))
- result.append(("%s" % delimeter).join(line))
+ result.append(("%s" % delimeter).join(map(lambda x:
x.encode("utf-8"), line)))
return "\n".join(result)
# Format instance without subnodes as key/value lines