Module: check_mk
Branch: master
Commit: 13ce6cc5cfd8d57d1f19bc3fdd94bc2f35120108
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=13ce6cc5cfd8d5…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Thu Dec 20 12:18:26 2018 +0100
agent_azure: always create agent info service for group host
Change-Id: Ia922fb256b626a1c46c344418a030eb8b0035aac
---
agents/special/agent_azure | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/agents/special/agent_azure b/agents/special/agent_azure
index 3152c1e..3e86413 100755
--- a/agents/special/agent_azure
+++ b/agents/special/agent_azure
@@ -586,6 +586,10 @@ def write_groups(resources):
section = Section('agent_info')
section.add(('monitored-groups', json.dumps(groups)))
section.write()
+ # create empty agent_info section for all groups, otherwise
+ # the service will only be discovered if something goes wrong
+ for group in groups:
+ Section('agent_info', group).write()
def main(argv=None):