Module: check_mk
Branch: master
Commit: 9efb07f2b5be0aecf9bc533c643f6f26ef9152af
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9efb07f2b5be0a…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed May 9 08:54:54 2018 +0200
6007 FIX etherbox.temp: Fixed another UnicodeDecodeError
Change-Id: Ifc92cd4d75ef57a50f23e535026a30cadd9cbf60
---
.werks/6007 | 10 ++++++++++
checks/etherbox | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/6007 b/.werks/6007
new file mode 100644
index 0000000..63fb3f0
--- /dev/null
+++ b/.werks/6007
@@ -0,0 +1,10 @@
+Title: etherbox.temp: Fixed another UnicodeDecodeError
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1525848865
+Class: fix
+
+
diff --git a/checks/etherbox b/checks/etherbox
index 61591e0..1721f98 100644
--- a/checks/etherbox
+++ b/checks/etherbox
@@ -103,7 +103,7 @@ def check_etherbox_temp(item, params, info):
uom = { "0": "c", "1": "f", "2":
"k" }[info[0][0][0]]
temp = int(value) / 10.0
state, infotext, perfdata = check_temperature(temp, params,
"etherbox_temp_%s" % item, uom)
- return state, "[%s] %s" % (name, infotext), perfdata
+ return state, "[%s] %s" % (name, infotext.decode("utf8")),
perfdata
check_info["etherbox.temp"] = {