Module: check_mk
Branch: master
Commit: 14e707e9007f78724263fc5f0c7c3b7d7e404ab7
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=14e707e9007f78…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Dec 14 17:33:04 2018 +0100
added WK6701: The hostname information was missing when exporting BI data via csv/json/python
Change-Id: I91d4554b8118d307d8c758dedad2b14a9b2cbc54
---
.werks/6701 | 13 +++++++++++++
cmk/gui/bi.py | 5 +++++
2 files changed, 18 insertions(+)
diff --git a/.werks/6701 b/.werks/6701
new file mode 100644
index 0000000..ac595ad
--- /dev/null
+++ b/.werks/6701
@@ -0,0 +1,13 @@
+Title: The hostname information was missing when exporting BI data via csv/json/python
+Level: 1
+Component: bi
+Class: feature
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1544778288
+
+The hostname and site information was missing on BI end nodes. This has been fixed.
+
+
diff --git a/cmk/gui/bi.py b/cmk/gui/bi.py
index 476b011..03dbadc 100644
--- a/cmk/gui/bi.py
+++ b/cmk/gui/bi.py
@@ -2718,6 +2718,11 @@ def render_tree_json(row):
"in_service_period": tree[0]["in_service_period"],
}
+ if is_leaf:
+ site, hostname = tree[2]["host"]
+ json_node["site"] = site
+ json_node["hostname"] = hostname
+
# Check if we have an assumed state: comparing assumed state (tree[1]) with state (tree[0])
if tree[1] and tree[0] != tree[1]:
json_node["assumed"] = True
Module: check_mk
Branch: master
Commit: 84401a09238397e6757aee36b7c5875a32cf404b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=84401a09238397…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Fri Dec 14 11:48:17 2018 +0100
6936 FIX cmk-update-agent: Handle Windows encoding
When running the agent updater on windows command line, special (non-ASCII) input characters
were not handled properly. This is now mitigated by applying proper codepages to input
from command line arguments and the user's stdin-input.
Please note that there might still occur some issues with special characters within the
windows command line, caused by limitations of the underlying shell,
depending on your system's configuration.
CMK-1438
Change-Id: I399e9b976b664b689897ef4b729e5d7626bacb07
---
.werks/6936 | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/.werks/6936 b/.werks/6936
new file mode 100644
index 0000000..949a208
--- /dev/null
+++ b/.werks/6936
@@ -0,0 +1,17 @@
+Title: cmk-update-agent: Handle Windows encoding
+Level: 1
+Component: agents
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.6.0i1
+Date: 1544782378
+
+When running the agent updater on windows command line, special (non-ASCII) input characters
+were not handled properly. This is now mitigated by applying proper codepages to input
+from command line arguments and the user's stdin-input.
+
+Please note that there might still occur some issues with special characters within the
+windows command line, caused by limitations of the underlying shell,
+depending on your system's configuration.
Module: check_mk
Branch: master
Commit: 5112d456aaa860697d4ee2188e38aec16662788e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5112d456aaa860…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Dec 14 10:53:51 2018 +0100
6827 aws_s3_summary: New check which gives an overview over all AWS/S3 buckets
Change-Id: Icfc76d2d1b1a66a6f74878a18b08b04b87aee9c9
---
.werks/6827 | 10 ++++++++++
checkman/aws_s3_summary | 13 +++++++++++++
checks/aws_s3_summary | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 71 insertions(+)
diff --git a/.werks/6827 b/.werks/6827
new file mode 100644
index 0000000..8359594
--- /dev/null
+++ b/.werks/6827
@@ -0,0 +1,10 @@
+Title: aws_s3_summary: New check which gives an overview over all AWS/S3 buckets
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1544781208
+Class: feature
+
+
diff --git a/checkman/aws_s3_summary b/checkman/aws_s3_summary
new file mode 100644
index 0000000..88d4e3e
--- /dev/null
+++ b/checkman/aws_s3_summary
@@ -0,0 +1,13 @@
+title: AWS S3 Summary
+agents: aws
+catalog: applications
+license: GPL
+distribution: check_mk
+description:
+ This check monitors all AWS S3 buckets and reports
+ a summary of their states.
+ To make this check work you have to configure the related
+ special agent {{Amazon Web Services (AWS)}}.
+
+inventory:
+ One summary service is created.
diff --git a/checks/aws_s3_summary b/checks/aws_s3_summary
new file mode 100644
index 0000000..88e68fb
--- /dev/null
+++ b/checks/aws_s3_summary
@@ -0,0 +1,48 @@
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2018 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# tails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
+
+
+def inventory_aws_s3_summary(parsed):
+ if parsed:
+ return [(None, {})]
+
+
+def check_aws_s3_summary(item, params, parsed):
+ yield 0, 'Buckets: %s' % len(parsed)
+ long_output = []
+ for row in parsed:
+ long_output.append("Bucket: %s, Creation date: %s" % (row['Name'], row['CreationDate']))
+ if long_output:
+ yield 0, '\n%s' % '\n'.join(long_output)
+
+
+check_info['aws_s3_summary'] = {
+ 'parse_function': parse_aws,
+ 'inventory_function': inventory_aws_s3_summary,
+ 'check_function': check_aws_s3_summary,
+ 'service_description': 'AWS/S3 Summary',
+ 'includes': ['aws.include'],
+}