Module: check_mk
Branch: master
Commit: 032e786dc41a645fb56338d68174999703297600
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=032e786dc41a64…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Apr 10 12:05:16 2014 +0200
FIX check_bi_local.py: fix crash in case of non-ascii characters
When you have an aggregate whos name contain a non-ascii character then
the <tt>check_bi_local.py</tt> would fail and you would miss all aggregates
from the point on. This has been fixed by encoding the output with UTF-8.
---
.werks/882 | 11 +++++++++++
ChangeLog | 1 +
doc/treasures/localchecks/check_bi_local.py | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/882 b/.werks/882
new file mode 100644
index 0000000..df31e44
--- /dev/null
+++ b/.werks/882
@@ -0,0 +1,11 @@
+Title: check_bi_local.py: fix crash in case of non-ascii characters
+Level: 2
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i3
+Date: 1397124240
+
+When you have an aggregate whos name contain a non-ascii character then
+the <tt>check_bi_local.py</tt> would fail and you would miss all aggregates
+from the point on. This has been fixed by encoding the output with UTF-8.
diff --git a/ChangeLog b/ChangeLog
index 8e4293a..c2f97f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,7 @@
* 0604 FIX: windows_updates: now handles situations with forced reboot and no limits
correctly
* 0605 FIX: enterasys_cpu_util enterasys_lsnat: syntax fixes
* 0889 FIX: logwatch: fix case where rule wouldn't be applied...
+ * 0882 FIX: check_bi_local.py: fix crash in case of non-ascii characters...
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
diff --git a/doc/treasures/localchecks/check_bi_local.py
b/doc/treasures/localchecks/check_bi_local.py
index 1f7963a..4ebdef7 100755
--- a/doc/treasures/localchecks/check_bi_local.py
+++ b/doc/treasures/localchecks/check_bi_local.py
@@ -112,5 +112,5 @@ for name, state, output in data[1:]:
text = "%d %s - %s" % (state_nr, descr, state)
if output:
text += " - " + output
- print text
+ print text.encode("utf-8")