Module: check_mk
Branch: master
Commit: dc83877e6110a66705a46543c238a5431ad9ee3b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc83877e6110a6…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Tue Apr 2 17:50:04 2019 +0200
Isolate calculation of data for prediction
- Determination of time windows happens in local time and in isolation from
the livestatus query. Tests are moved in time to evaluate this.
- Once unix timestamps are defined livestatus is queried.
- Fix Integration test for predictive levels
- New test just on retrieval and up-sampling
- Add new time-zoned tests
CMK-1761
Change-Id: I8610ac1e4179c574fd585e6702707841d8a2fdab
---
cmk/utils/prediction.py | 3 +-
cmk_base/prediction.py | 62 ++++++--------
.../cmk_base/test-files/America/New_York/everyday | 1 +
.../cmk_base/test-files/{ => Europe/Berlin}/26 | 2 +-
.../test-files/{ => Europe/Berlin}/26.info | 0
.../cmk_base/test-files/Europe/Berlin/everyday | 1 +
.../test-files/{ => Europe/Berlin}/everyday.info | 0
.../test-files/{ => Europe/Berlin}/thursday | 2 +-
.../test-files/{ => Europe/Berlin}/thursday.info | 0
tests/integration/cmk_base/test-files/UTC/sunday | 1 +
tests/integration/cmk_base/test-files/everyday | 1 -
.../cmk_base/test_services_prediction.py | 98 ++++++++++++++++++----
12 files changed, 115 insertions(+), 56 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=dc83877e61…
Module: check_mk
Branch: master
Commit: 33bc1508975f19ea18167ac438ca0cbcf8bff7a3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=33bc1508975f19…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Tue Apr 2 16:32:35 2019 +0200
Use TimeSeries class to retrieve and work with RRDdata
- Now that time series can be up-sampled consolidation does not need to
deal with re-scaling arrays of data for alignment of time series.
- Refactor RRDdata consolidation in predictive levels
CMK-1761
Change-Id: Ic03fa75b87bbfff4b7ab5afd8999d48e93335145
---
cmk/gui/prediction.py | 5 +-
cmk/utils/prediction.py | 28 +++++---
cmk_base/prediction.py | 78 +++++++++-------------
.../cmk_base/test_services_prediction.py | 21 +++---
tests/unit/cmk_base/test_prediction.py | 24 +++----
5 files changed, 77 insertions(+), 79 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=33bc150897…
Module: check_mk
Branch: master
Commit: b9d15775f717ec756df35c84db02abcb73d2e684
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b9d15775f717ec…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Thu Apr 4 12:04:26 2019 +0200
Fix precedence when cleaning prediction files
Change-Id: I3921a0e09a4918cd8124ec193cdb27f0c13c94d6
---
cmk/utils/prediction.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/utils/prediction.py b/cmk/utils/prediction.py
index 64188f2..8aab80d 100644
--- a/cmk/utils/prediction.py
+++ b/cmk/utils/prediction.py
@@ -187,7 +187,7 @@ def clean_prediction_files(pred_file, force=False):
# which was never handled correctly so that the prediction could never be used again until
# manual removal of the files. Clean this up.
for file_path in [pred_file, pred_file + '.info']:
- if os.path.exists(file_path) and os.stat(file_path).st_size == 0 or force:
+ if os.path.exists(file_path) and (os.stat(file_path).st_size == 0 or force):
logger.verbose("Removing obsolete prediction %s", os.path.basename(file_path))
os.remove(file_path)
Module: check_mk
Branch: master
Commit: 085102cbb29d468779f13f2f076adebc5652aa2e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=085102cbb29d46…
Author: Sergey Kipnis <sk(a)mathias-kettner.de>
Date: Wed Apr 3 10:57:32 2019 +0200
[CMK-1890] - automatic installer of MSI loaded to the ProgramData/update
- install_api.* keeps all functionality required(partially moved from service_apu.*)
- service_api.* left as an empty stubs to be removed
- full Unit Test support of both Top Level and Low Level functionality
- revamped service main to be compatible with API
- diagnostic extended to support new api and new logic
- update to be tested MANUALLY. To be changed with upcoming commits
- install API fixed according to C++ guidelines
Change-Id: I8745858b3f160661019d120e361da15ff4c597b0
---
agents/wnx/install/resources/check_mk.dat | 2 +-
agents/wnx/src/engine/cfg.cpp | 5 +
agents/wnx/src/engine/cfg.h | 5 +-
agents/wnx/src/engine/engine.vcxproj | 2 +
agents/wnx/src/engine/engine.vcxproj.filters | 6 +
agents/wnx/src/engine/install_api.cpp | 198 ++++++++++++++++++++++++++
agents/wnx/src/engine/install_api.h | 53 +++++++
agents/wnx/src/engine/service_api.cpp | 109 +-------------
agents/wnx/src/engine/service_api.h | 21 +--
agents/wnx/src/engine/windows_service_api.cpp | 40 +++---
agents/wnx/src/main/check_mk_service.cpp | 35 +++--
agents/wnx/watest/test-install-auto.cpp | 105 ++++++++++++++
agents/wnx/watest/test-service.cpp | 40 ------
agents/wnx/watest/watest.vcxproj | 1 +
agents/wnx/watest/watest.vcxproj.filters | 3 +
15 files changed, 426 insertions(+), 199 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=085102cbb2…
Module: check_mk
Branch: master
Commit: 7672a969d4e5ddd1cefdae3a077f31a2a7ae1c0c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7672a969d4e5dd…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Apr 4 11:19:35 2019 +0200
6970 FIX Fixed macro expansion in Livestatus
Unterminated dollar signs were handled incorrectly: The part of the text
before such a dollar sign was repeated, e.g. "foo$bar" was incorreclty
expanded to "foofoo$bar", although it should remain unchanged. This
affected only the Livestatus NEB, not the CMC.
CMK-1925
Change-Id: If4afe3c9a1f2d702877f008b1ecd6ae0865c95d9
---
.werks/6970 | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/.werks/6970 b/.werks/6970
new file mode 100644
index 0000000..931ec07
--- /dev/null
+++ b/.werks/6970
@@ -0,0 +1,15 @@
+Title: Fixed macro expansion in Livestatus
+Level: 1
+Component: livestatus
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1554369501
+Class: fix
+
+Unterminated dollar signs were handled incorrectly: The part of the text
+before such a dollar sign was repeated, e.g. "foo$bar" was incorreclty
+expanded to "foofoo$bar", although it should remain unchanged. This
+affected only the Livestatus NEB, not the CMC.
+
+CMK-1925