Module: check_mk
Branch: master
Commit: a5f69c00607975a4ff3cc305aee7bdc87bea1ac4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a5f69c00607975…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 12 19:54:08 2018 +0100
Fixed potential encoding issue when generating the nagios config
Change-Id: Iab2a2b91d16028e90aa0f9727b49854f401345c0
---
cmk_base/core_nagios.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk_base/core_nagios.py b/cmk_base/core_nagios.py
index e2fe08d..e8e3c7e 100644
--- a/cmk_base/core_nagios.py
+++ b/cmk_base/core_nagios.py
@@ -352,7 +352,7 @@ define servicedependency {
}
""" % (template, hostname, description.encode("utf-8"),
check_interval,
- _extra_service_conf_of(hostname, description), action_cfg, checkname))
+ _extra_service_conf_of(hostname, description), action_cfg,
checkname.encode("utf-8")))
checknames_to_define.add(checkname)
have_at_least_one_service = True