Module: check_mk
Branch: master
Commit: 75a85655959eaae8d6e8a0e1eee5e54c1456c484
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=75a85655959eaa…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Dec 4 12:23:49 2014 +0100
Fix bug in creating Nagios configuration
---
modules/check_mk.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 3c6e9ef..2065584 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2371,8 +2371,9 @@ define service {
g_hostname = hostname
has_perfdata = act_info.get('has_perfdata', False)
- description = description.replace('$HOSTNAME$', g_hostname)
- description =
sanitize_service_description(act_info["service_description"](params))
+ description = sanitize_service_description(
+ act_info["service_description"](params)
+ .replace('$HOSTNAME$', g_hostname))
if do_omit_service(hostname, description):
continue