Module: check_mk
Branch: master
Commit: 3e19fd2cf7bf8e09dd769c1e4e2a522d62e69c5e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3e19fd2cf7bf8e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 19 23:18:35 2013 +0200
FIX: fix bug with missing special_agent_local_dir
---
modules/check_mk.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 83d4571..b2faee7 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1107,7 +1107,10 @@ def get_sorted_check_table(hostname):
# be None in most cases -> to TCP connect on port 6556
# HACK:
special_agent_dir = agents_dir + "/special"
-special_agent_local_dir = local_agents_dir + "/special"
+if local_agents_dir:
+ special_agent_local_dir = local_agents_dir + "/special"
+else:
+ special_agent_local_dir = None
def get_datasource_program(hostname, ipaddress):
# First check WATO-style special_agent rules