Module: check_mk
Branch: master
Commit: 0aa2ba927e328eb54cc3bd5c80d8bdd3ddb542e1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0aa2ba927e328e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 28 08:48:15 2017 +0100
Fixed monitoring using special agents
Change-Id: I6b07edf8158bc23e64102ba1767ee2da822f115e
---
cmk_base/data_sources/__init__.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/cmk_base/data_sources/__init__.py b/cmk_base/data_sources/__init__.py
index 760f617..d9f028f 100644
--- a/cmk_base/data_sources/__init__.py
+++ b/cmk_base/data_sources/__init__.py
@@ -160,7 +160,7 @@ class DataSources(object):
if not ignore_special_agents:
special_agents = self._get_special_agent_data_sources()
if special_agents:
- return special_agents[0][1]
+ return special_agents[0]
programs = rulesets.host_extra_conf(self._hostname, config.datasource_programs)
if programs:
@@ -181,8 +181,7 @@ class DataSources(object):
for agentname, ruleset in sorted(config.special_agents.items()):
params = rulesets.host_extra_conf(self._hostname, ruleset)
if params:
- source = SpecialAgentDataSource(agentname, params[0])
- special_agents[source.id()] = source
+ special_agents.append(SpecialAgentDataSource(agentname, params[0]))
return special_agents