Module: check_mk
Branch: master
Commit: 7e74233f5974da827abdb75fa22913bdae85f6ed
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7e74233f5974da…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Dec 3 17:04:20 2015 +0100
adva_fsp_temp: Fixed unicode problem
---
checks/adva_fsp_temp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/adva_fsp_temp b/checks/adva_fsp_temp
index 64957e5..3babfd5 100644
--- a/checks/adva_fsp_temp
+++ b/checks/adva_fsp_temp
@@ -46,10 +46,10 @@ def check_adva_fsp_temp(item, params, info):
high = float(high)/10
low = float(low)/10
if low > -273:
- infotext = "Temperature is %.1f °C (limits %.1f/%.1f °C) at %s"
% (temp, low, high, descr)
+ infotext = u"Temperature is %.1f °C (limits %.1f/%.1f °C) at
%s" % (temp, low, high, descr.decode("utf-8"))
perfdata = [ ("temp", temp, "",
str(low)+":"+str(high), ) ]
else:
- infotext = "Temperature is %.1f °C (crit at %.1f °C) at %s" %
(temp, high, descr)
+ infotext = u"Temperature is %.1f °C (crit at %.1f °C) at %s" %
(temp, high, descr.decode("utf-8"))
perfdata = [ ("temp", temp, "", high, ) ]
if temp <= -2730: