Module: check_mk
Branch: master
Commit: b03e488c6ede5564b04ce5a8b0df88b9fbfe420f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b03e488c6ede55…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 23 10:56:56 2018 +0100
5653: New report element: Add host report for multiple hosts
Change-Id: I17e58a1d5a0e3bf25b5b8823e97adfb9da43fd26
---
.werks/5653 | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/.werks/5653 b/.werks/5653
new file mode 100644
index 0000000..f87f8da
--- /dev/null
+++ b/.werks/5653
@@ -0,0 +1,25 @@
+Title: New report element: Add host report for multiple hosts
+Level: 2
+Component: reporting
+Compatible: compat
+Edition: cee
+Version: 1.5.0i3
+Date: 1516700903
+Class: feature
+
+Using the new report element "Host report for multiple hosts" it is now
+possible to include reports in other reports to instanciate it multiple
+times.
+
+For example you can now create a top-level "ESX host" report that
+contains sub reports for each of your ESX servers.
+
+All you need to do is to create a report that contains all the report elements
+you want to see for a single ESX server. Either the whole report or at least
+the single elements in that report need to have the "single host context"
+configured. Then you need to create a top level report, add the element
+"Host report for multiple hosts" to this report and select the previously
+configured host specific report as child report. In that element you also
+need to configure the "Search filters" to match the hosts you want to create
+the child elements for. In the example above you need to configure e.g. the
+host tag filter to select the ESX hosts.
Module: check_mk
Branch: master
Commit: 69357eb52eb6ec4e7ee49325ea9406566bf4e0d0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=69357eb52eb6ec…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Fri Jan 19 14:02:16 2018 +0100
test_statgrab_cpu_check: Remove monkeypatching of time module, as it doesn't work this way and is unnecessary
Change-Id: Ic86f0871393cc57d199699855b33209ed9466b54
---
tests/checks/test_statgrab_cpu_check.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/checks/test_statgrab_cpu_check.py b/tests/checks/test_statgrab_cpu_check.py
index e43b017..e001129 100644
--- a/tests/checks/test_statgrab_cpu_check.py
+++ b/tests/checks/test_statgrab_cpu_check.py
@@ -22,12 +22,13 @@ info_statgrab_cpu_hpux = lambda t: [[u'idle', u'%d' % int(t*5)],
),
])
def test_statgrab_cpu_check(check_manager, monkeypatch, time_to_info, params, predicate):
- import time
check = check_manager.get_check("statgrab_cpu")
+ # NOTE: We do not mock the time module here, because the check does not depend on any
+ # absolute rates. The mocking that was included in this test previously had no
+ # effect, which went unnoticed because it doesn't matter in this case.
try:
list(check.run_check(None, params, time_to_info(0)))
except MKCounterWrapped:
pass
- monkeypatch.setattr("time.time", lambda: 60)
result = checktestlib.CheckResult(check.run_check(None, params, time_to_info(60)))
assert predicate(result)
Module: check_mk
Branch: master
Commit: aac0e510bda6288bca53cc4b66327fa88fa16008
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=aac0e510bda628…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 19 19:17:55 2018 +0100
Tests: Not try to clean up versions when no version is installed
Change-Id: I5f8dfdfc378af8f3fc216bdfb1160c07423f76b0
---
tests/testlib/__init__.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index d5b3570..19612fa 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -585,6 +585,9 @@ class Site(object):
def cleanup_old_sites(self, cleanup_pattern):
+ if not os.path.exists("/omd/sites"):
+ return
+
for site_id in os.listdir("/omd/sites"):
if site_id != self.id and site_id.startswith(cleanup_pattern):
print "Cleaning up old site: %s" % site_id
Module: check_mk
Branch: master
Commit: 355e515d63f67199b5ac2c0041df6dd33d687ce1
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=355e515d63f671…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Fri Jan 19 14:35:56 2018 +0100
Windows agent: build check_mk_agent.a library
Link this lib to both check_mk_agent.exe and WindowsAgentTest.exe. The
target was to allow different compile options (include path) for test
sources than for the rest of the sources but reuse same object files /
libraries for both the exe and tests without the need to compile them
twice.
Fix linkage by replacing global extern variables with_stderr and
g_workers_job_object with member variables in Environment.
Change-Id: Ic77e14c1d252adae674de37009b53d7f8d1500b3
---
agents/windows/Environment.cc | 7 ++++--
agents/windows/Environment.h | 13 ++++++++++-
agents/windows/ExternalCmd.cc | 13 +++++------
agents/windows/ExternalCmd.h | 9 +++++---
agents/windows/Makefile.am | 27 ++++++----------------
agents/windows/check_mk_agent.cc | 23 ++++--------------
agents/windows/configure.ac | 1 +
agents/windows/test/EnvironmentTest.cc | 20 ++++++++++------
.../windows/test/sections/SectionEventlogTest.cc | 20 ++++++++--------
.../windows/test/sections/SectionLogwatchTest.cc | 24 +++++++++----------
10 files changed, 75 insertions(+), 82 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=355e515d63…
Module: check_mk
Branch: master
Commit: 50841c33a841cfe2937b7a9e881e8c9ee1d25701
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=50841c33a841cf…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Mon Jan 22 14:00:55 2018 +0100
5698 FIX Windows agent: space in MRPE plugin path resulted in wrong plugin name
If the path of a(n included) MRPE plugin contained one or more spaces,
the plugin name was parsed incorrectly. Quotes were incorrectly
required for the whole command line including parameters within quotes,
making it impossible to distinguish between a script path containing
space(s) and space-separated script parameters. Now the MRPE plugin
path must be enclosed in double quotes (") in order to be processed
correctly. The same applies for script parameters with whitespace:
also they must be separately enclosed in quotes.
Example:
check_mk.ini:
[mrpe]
include = C:\Temp\my.cfg
C:\Temp\my.cfg:
check = Dummy "C:\Program Files (x86)\check_mk\mrpe\check_crit.bat" some parameter "with space"
---
.werks/5698 | 30 ++++++++
agents/windows/Makefile.am | 3 +-
agents/windows/build_version | 2 +-
agents/windows/check_mk.example.ini | 27 ++++++++
agents/windows/sections/SectionMRPE.cc | 91 +++++++++++++++++--------
agents/windows/stringutil.h | 4 +-
agents/windows/test/sections/SectionMRPETest.cc | 71 +++++++++++++++++++
agents/windows/test/stringutilTest.cc | 39 ++++++++++-
8 files changed, 233 insertions(+), 34 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=50841c33a8…