Module: check_mk
Branch: master
Commit: ad64895965cf25dd5a2df3d5791cc8ecc581cd87
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ad64895965cf25…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Dec 10 15:40:59 2018 +0100
agent_aws: Fixed wrong section header for piggyback hosts
Change-Id: Iccf77241851ccadfef3852a4a3e88f09f9ab884c
---
agents/special/agent_aws | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agents/special/agent_aws b/agents/special/agent_aws
index 0199b2f..471f2b9 100755
--- a/agents/special/agent_aws
+++ b/agents/special/agent_aws
@@ -300,8 +300,8 @@ class AWSSections(object):
section_header = "<<<aws_%s:cached(%s,%s)>>>\n" %
(section_name, now, section_interval)
for row in result:
if row.piggyback_hostname:
- sys.stdout.write(section_header)
- sys.stdout.write("<<<aws_%s>>>\n" %
section_name)
+ sys.stdout.write("<<<<%s>>>>\n" %
row.piggyback_hostname)
+ sys.stdout.write(section_header)
sys.stdout.write("%s\n" % json.dumps(row.content,
default=_datetime_converter))
if row.piggyback_hostname:
sys.stdout.write("<<<<>>>>\n")