Module: check_mk
Branch: master
Commit: 38755435f1528ae92c94c2e3f7070a9fa352bee2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=38755435f1528a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jul 1 16:37:34 2015 +0200
Fix exception in Nagios configuration generation on non-Ascii character
---
modules/check_mk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 8b6c55a..b5160d3 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2286,7 +2286,7 @@ define servicedependency {
%s%s%s check_command\t\t\tcheck_mk-%s
}
-""" % ( template, hostname, description, check_interval, logwatch,
+""" % ( template, hostname, description.encode("utf-8"),
check_interval, logwatch,
extra_service_conf_of(hostname, description), action_cfg, checkname ))
checknames_to_define.add(checkname)