Module: check_mk
Branch: master
Commit: 5f9f6a0dab983eba1403f5bb00a8e2a6d475e613
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5f9f6a0dab983e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 3 14:43:43 2015 +0100
#2734 FIX cmctc.temp: fix exception of type UnicodeDecodeError
---
.werks/2734 | 9 +++++++++
ChangeLog | 1 +
checks/cmctc | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/2734 b/.werks/2734
new file mode 100644
index 0000000..3bdf4fc
--- /dev/null
+++ b/.werks/2734
@@ -0,0 +1,9 @@
+Title: cmctc.temp: fix exception of type UnicodeDecodeError
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1446558200
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 6349a05..5bbea07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,7 @@
* 2698 FIX: ups_capacity: fixed missing battery time and fuel information
* 2672 FIX: mounts: ignore options that are allowed to change on btrfs
filesystems...
* 2445 FIX: ibm_svc_disks: fixed crash in case special agent reports too much data
columns per line
+ * 2734 FIX: cmctc.temp: fix exception of type UnicodeDecodeError
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/cmctc b/checks/cmctc
index a661ba3..52017c3 100644
--- a/checks/cmctc
+++ b/checks/cmctc
@@ -55,7 +55,7 @@ def check_cmctc_temp(item, params, info):
}
status, current, crit, low, warn = map(int, line[2:7])
descr = line[7]
- info_text = "%s at %d°C" % (descr, current)
+ info_text = u"%s at %d°C" % (descr, current)
if params:
warn, crit = params
if current >= crit: