Module: check_mk
Branch: master
Commit: 1ab250c30dfa8e5c1135a32c7c38beba4a1407bb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ab250c30dfa8e…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Nov 19 10:04:06 2015 +0100
#2837 FIX hitachi_hnas_temp: fixed ascii decode error, handles degree celsius now correct
---
.werks/2837 | 10 ++++++++++
ChangeLog | 1 +
checks/hitachi_hnas_temp | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/2837 b/.werks/2837
new file mode 100644
index 0000000..cb98dd5
--- /dev/null
+++ b/.werks/2837
@@ -0,0 +1,10 @@
+Title: hitachi_hnas_temp: fixed ascii decode error, handles degree celsius now correct
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1447923593
+
+
diff --git a/ChangeLog b/ChangeLog
index d58adb6..1eefd51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -90,6 +90,7 @@
* 2794 FIX: The encoding parameter set in the agent sections was not working...
* 2712 FIX: winperf_processor: this check no longer requires multiple check cycles
before counters are initialized
* 2796 FIX: apc_symetra_ext_temp: now supports temperatures measured in fahrenheit
+ * 2837 FIX: hitachi_hnas_temp: fixed ascii decode error, handles degree celsius now
correct
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/hitachi_hnas_temp b/checks/hitachi_hnas_temp
index afef4a1..201c984 100644
--- a/checks/hitachi_hnas_temp
+++ b/checks/hitachi_hnas_temp
@@ -49,7 +49,7 @@ def check_hitachi_hnas_temp(item, _no_params, info):
return 3, "PNode %s Sensor %s reported unidentified status %s"
% (clusternode, id, status)
else:
perfdata = [ ('temp', str(temp) + 'C') ]
- return temp_status_map[status][1], "PNode %s Sensor %s reported
status %s, temperature is %s °C" % (clusternode, id, temp_status_map[status][0],
temp), perfdata
+ return temp_status_map[status][1], u"PNode %s Sensor %s reported
status %s, temperature is %s °C" % (clusternode, id, temp_status_map[status][0],
temp), perfdata
return 3, "No sensor PNode %s Sensor %s found" % (clusternode, id)
check_info["hitachi_hnas_temp"] = {