Module: check_mk
Branch: master
Commit: d23343b97f8ce104e8f51b34bd0040cb13ee8a70
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d23343b97f8ce1…
Author: Sergey Kipnis <sk(a)mathias-kettner.de>
Date: Thu Feb 28 14:04:41 2019 +0100
[CMK-1730] - initial commit of new Windows Agent
Change-Id: I375d03193d5559042f0d7445de74df14e7433710
---
.gitignore | 1 +
.gitmodules | 0
.../dependencies/json/json-master-3.4.0.tar.gz | Bin 0 -> 4325040 bytes
agents/windows/dependencies/json/readme.txt | 1 +
agents/windows/dependencies/unpack_all.cmd | 20 +
.../dependencies/yaml-cpp/yaml-cpp-master.tar.gz | Bin 0 -> 1352201 bytes
agents/wnx/.gitignore | 12 +
agents/wnx/.vscode/settings.json | 6 +
agents/wnx/bin/readme.txt | 1 +
agents/wnx/bin/run_all.cmd | 5 +
agents/wnx/bin/test_service.cmd | 26 +
agents/wnx/build_release.cmd | 81 +
agents/wnx/build_watest.cmd | 30 +
agents/wnx/call_deploy.cmd | 4 +
agents/wnx/call_unit_tests.cmd | 35 +
agents/wnx/call_unit_tests_quick.cmd | 1 +
agents/wnx/doc/ExternalTransport.txt | 71 +
agents/wnx/doc/InternalTransport.txt | 137 ++
agents/wnx/doc/readme.txt | 1 +
agents/wnx/include/readme.txt | 1 +
agents/wnx/include/tools/_kbd.h | 17 +
agents/wnx/include/tools/_misc.h | 577 +++++++
agents/wnx/include/tools/_process.h | 323 ++++
agents/wnx/include/tools/_raii.h | 70 +
agents/wnx/include/tools/_tgt.h | 68 +
agents/wnx/include/tools/_xdbg.h | 83 +
agents/wnx/include/tools/_xlog.h | 1215 +++++++++++++++
agents/wnx/install/.gitignore | 2 +
agents/wnx/install/InstallFolderDialog.wxs | 33 +
agents/wnx/install/InstallMainDialog.wxs | 86 +
agents/wnx/install/Product.wxs | 407 +++++
agents/wnx/install/bld_msi.cmd | 33 +
agents/wnx/install/faq.txt | 10 +
agents/wnx/install/install.sln | 25 +
agents/wnx/install/install.wixproj | 67 +
agents/wnx/install/msbld.cmd | 5 +
agents/wnx/install/readme-wix.txt | 21 +
agents/wnx/install/readme.txt | 19 +
agents/wnx/install/resources/GPL-V2.rtf | 342 ++++
agents/wnx/install/resources/check_mk.dat | 1 +
agents/wnx/install/resources/check_mk.yml | 362 +++++
agents/wnx/install/resources/faq.txt | 10 +
agents/wnx/microservice/microservice.cpp | Bin 0 -> 19010 bytes
agents/wnx/microservice/microservice.sln | 31 +
agents/wnx/microservice/microservice.vcxproj | 176 +++
.../wnx/microservice/microservice.vcxproj.filters | 30 +
agents/wnx/microservice/pch.cpp | Bin 0 -> 430 bytes
agents/wnx/microservice/pch.h | Bin 0 -> 1262 bytes
agents/wnx/microservice/readme.txt | 1 +
agents/wnx/openhardwaremonitor-clean.cmd | 23 +
agents/wnx/prepare_to_tests.cmd | 35 +
agents/wnx/readme.txt | 15 +
agents/wnx/src/check_mk_service.vcxproj | 280 ++++
agents/wnx/src/check_mk_service.vcxproj.filters | 40 +
agents/wnx/src/check_service.cmd | 4 +
agents/wnx/src/common/cfg_info.cpp | 13 +
agents/wnx/src/common/cfg_info.h | 168 ++
agents/wnx/src/common/cfg_yaml.h | 135 ++
agents/wnx/src/common/cmdline_info.h | 88 ++
agents/wnx/src/common/datablock.h | 44 +
agents/wnx/src/common/mailslot_transport.h | 506 ++++++
agents/wnx/src/common/readme.txt | 2 +
agents/wnx/src/common/version.h | 7 +
agents/wnx/src/common/wtools.cpp | 1398 +++++++++++++++++
agents/wnx/src/common/wtools.h | 928 +++++++++++
agents/wnx/src/engine/asio.h | Bin 0 -> 1546 bytes
agents/wnx/src/engine/async_answer.cpp | 150 ++
agents/wnx/src/engine/async_answer.h | 124 ++
agents/wnx/src/engine/cap.cpp | 155 ++
agents/wnx/src/engine/cap.h | 21 +
agents/wnx/src/engine/carrier.cpp | 202 +++
agents/wnx/src/engine/carrier.h | 249 +++
agents/wnx/src/engine/cfg.cpp | 974 ++++++++++++
agents/wnx/src/engine/cfg.h | 762 +++++++++
agents/wnx/src/engine/cfg_details.h | 378 +++++
agents/wnx/src/engine/cma_core.cpp | Bin 0 -> 41424 bytes
agents/wnx/src/engine/cma_core.h | 657 ++++++++
agents/wnx/src/engine/cvt.cpp | 34 +
agents/wnx/src/engine/cvt.h | 55 +
agents/wnx/src/engine/engine.vcxproj | 512 ++++++
agents/wnx/src/engine/engine.vcxproj.filters | 404 +++++
agents/wnx/src/engine/eventlog/eventlogbase.cpp | 76 +
agents/wnx/src/engine/eventlog/eventlogbase.h | 162 ++
agents/wnx/src/engine/eventlog/eventlogstd.cpp | 345 ++++
agents/wnx/src/engine/eventlog/eventlogstd.h | 86 +
agents/wnx/src/engine/eventlog/eventlogvista.cpp | 470 ++++++
agents/wnx/src/engine/eventlog/eventlogvista.h | 91 ++
agents/wnx/src/engine/external_port.cpp | 156 ++
agents/wnx/src/engine/external_port.h | 248 +++
agents/wnx/src/engine/glob_match.h | 159 ++
agents/wnx/src/engine/groups.cpp | 376 +++++
agents/wnx/src/engine/logger.cpp | 310 ++++
agents/wnx/src/engine/logger.h | Bin 0 -> 43188 bytes
agents/wnx/src/engine/on_start.cpp | 110 ++
agents/wnx/src/engine/on_start.h | 29 +
agents/wnx/src/engine/provider_api.h | 60 +
agents/wnx/src/engine/providers/check_mk.cpp | 68 +
agents/wnx/src/engine/providers/check_mk.h | 32 +
agents/wnx/src/engine/providers/df.cpp | 110 ++
agents/wnx/src/engine/providers/df.h | 33 +
agents/wnx/src/engine/providers/fileinfo.cpp | 492 ++++++
agents/wnx/src/engine/providers/fileinfo.h | 40 +
agents/wnx/src/engine/providers/fileinfo_details.h | 87 ++
agents/wnx/src/engine/providers/internal.cpp | 271 ++++
agents/wnx/src/engine/providers/internal.h | 193 +++
agents/wnx/src/engine/providers/logwatch_event.cpp | 464 ++++++
agents/wnx/src/engine/providers/logwatch_event.h | 151 ++
.../src/engine/providers/logwatch_event_details.h | 24 +
agents/wnx/src/engine/providers/mem.cpp | 47 +
agents/wnx/src/engine/providers/mem.h | 32 +
agents/wnx/src/engine/providers/mrpe.cpp | 309 ++++
agents/wnx/src/engine/providers/mrpe.h | 124 ++
agents/wnx/src/engine/providers/ohm.cpp | 61 +
agents/wnx/src/engine/providers/ohm.h | 45 +
.../wnx/src/engine/providers/p_perf_counters.cpp | 227 +++
agents/wnx/src/engine/providers/p_perf_counters.h | 70 +
agents/wnx/src/engine/providers/plugins.cpp | 114 ++
agents/wnx/src/engine/providers/plugins.h | 72 +
agents/wnx/src/engine/providers/ps.cpp | 316 ++++
agents/wnx/src/engine/providers/ps.h | 37 +
agents/wnx/src/engine/providers/services.cpp | 147 ++
agents/wnx/src/engine/providers/services.h | 32 +
agents/wnx/src/engine/providers/skype.cpp | 172 ++
agents/wnx/src/engine/providers/skype.h | 53 +
agents/wnx/src/engine/providers/spool.cpp | 143 ++
agents/wnx/src/engine/providers/spool.h | 46 +
agents/wnx/src/engine/providers/system_time.cpp | 28 +
agents/wnx/src/engine/providers/system_time.h | 32 +
agents/wnx/src/engine/providers/wmi.cpp | 305 ++++
agents/wnx/src/engine/providers/wmi.h | 122 ++
agents/wnx/src/engine/read_file.h | 80 +
agents/wnx/src/engine/readme.txt | 3 +
agents/wnx/src/engine/section_header.h | 139 ++
agents/wnx/src/engine/service_api.cpp | 126 ++
agents/wnx/src/engine/service_api.h | 27 +
agents/wnx/src/engine/service_processor.cpp | 380 +++++
agents/wnx/src/engine/service_processor.h | 640 ++++++++
agents/wnx/src/engine/stdafx.cpp | Bin 0 -> 442 bytes
agents/wnx/src/engine/stdafx.h | Bin 0 -> 1148 bytes
agents/wnx/src/engine/stdafx_defines.h | Bin 0 -> 1624 bytes
agents/wnx/src/engine/unpack_packs.cmd | 36 +
agents/wnx/src/engine/windows_service_api.cpp | 354 +++++
agents/wnx/src/engine/windows_service_api.h | 49 +
agents/wnx/src/install/readme.txt | 1 +
agents/wnx/src/lwa/Configurable.h | 294 ++++
agents/wnx/src/lwa/ConfigurableTrash.h | 11 +
agents/wnx/src/lwa/Configuration.cpp | 1058 +++++++++++++
agents/wnx/src/lwa/Configuration.h | 98 ++
agents/wnx/src/lwa/SettingsCollector.cc | 25 +
agents/wnx/src/lwa/SettingsCollector.h | 147 ++
agents/wnx/src/lwa/stringutil.cpp | 324 ++++
agents/wnx/src/lwa/stringutil.h | 363 +++++
agents/wnx/src/lwa/types.cc | 300 ++++
agents/wnx/src/lwa/types.h | 466 ++++++
agents/wnx/src/lwa/win_error.cc | 47 +
agents/wnx/src/lwa/win_error.h | 38 +
agents/wnx/src/main/check_mk_service.cpp | Bin 0 -> 9140 bytes
agents/wnx/src/main/check_mk_service.h | Bin 0 -> 2574 bytes
agents/wnx/src/main/pch.cpp | Bin 0 -> 430 bytes
agents/wnx/src/main/pch.h | Bin 0 -> 730 bytes
agents/wnx/src/main/readme.txt | 1 +
agents/wnx/src/player/pch.cpp | 5 +
agents/wnx/src/player/pch.h | 23 +
agents/wnx/src/player/player.h | 369 +++++
agents/wnx/src/player/player_api.h | 23 +
agents/wnx/src/player/plugin_player.cpp | 344 ++++
agents/wnx/src/player/plugin_player.vcxproj | 240 +++
.../wnx/src/player/plugin_player.vcxproj.filters | 36 +
agents/wnx/src/player/readme.txt | 1 +
agents/wnx/src/player/test/.gitignore | 3 +
agents/wnx/src/player/test/mk_inventory_test.vbs | 375 +++++
agents/wnx/src/player/test/readme.txt | 3 +
agents/wnx/src/player/test/summary.output | 5 +
agents/wnx/src/player/test/test_plugin.cmd | 4 +
agents/wnx/src/player/test/test_plugin.output | 2 +
agents/wnx/src/player/test/test_plugin2.bat | 3 +
agents/wnx/src/player/test/test_plugin2.output | 3 +
agents/wnx/src/player/test/write_dbg.exe | Bin 0 -> 85504 bytes
agents/wnx/src/providers/perf_counter/deploy.cmd | 12 +
agents/wnx/src/providers/perf_counter/pch.cpp | Bin 0 -> 430 bytes
agents/wnx/src/providers/perf_counter/pch.h | Bin 0 -> 744 bytes
.../src/providers/perf_counter/perf_counter.cpp | Bin 0 -> 16774 bytes
.../perf_counter/provider_perf_counter.vcxproj | 235 +++
.../provider_perf_counter.vcxproj.filters | 30 +
agents/wnx/src/providers/readme.txt | 1 +
agents/wnx/src/snippets/CreateProcess.cpp | 127 ++
agents/wnx/src/snippets/asio_liste_socket.cpp | 188 +++
agents/wnx/src/snippets/assorted.h | 8 +
agents/wnx/src/snippets/protected_fields.h | 93 ++
agents/wnx/src/tests/pch.cpp | Bin 0 -> 430 bytes
agents/wnx/src/tests/pch.h | Bin 0 -> 1262 bytes
agents/wnx/src/tests/tests.cpp | 28 +
agents/wnx/src/tests/tests.sln | 31 +
agents/wnx/src/tests/tests.vcxproj | 192 +++
agents/wnx/src/tests/tests.vcxproj.filters | 33 +
agents/wnx/src/updater/readme.txt | 1 +
agents/wnx/start_wmi.cmd | 15 +
agents/wnx/test_files/cap/plugins.test.cap | Bin 0 -> 17533 bytes
agents/wnx/test_files/config/check_mk.example.ini | 222 +++
.../test_files/config/check_mk.fileinfo.test.ini | 6 +
.../wnx/test_files/config/check_mk.global.test.ini | 71 +
.../test_files/config/check_mk.logfiles.test.ini | 30 +
.../test_files/config/check_mk.logwatch.test.ini | 28 +
.../wnx/test_files/config/check_mk.mrpe.test.ini | 38 +
.../wnx/test_files/config/check_mk.old.example.yml | 322 ++++
.../config/check_mk.plugins_local.test.ini | 28 +
agents/wnx/test_files/config/check_mk.ps.test.ini | 6 +
agents/wnx/test_files/config/check_mk.test.ini | 222 +++
agents/wnx/test_files/config/check_mk.test.out | 245 +++
.../test_files/config/check_mk.winperf.test.ini | 9 +
.../wnx/test_files/config/check_mk_dev.example.yml | 193 +++
agents/wnx/test_files/config/check_mk_dev.yml | 286 ++++
.../wnx/test_files/config/check_mk_dev_default.yml | 101 ++
.../test_files/config/check_mk_dev_malformed.yml | 155 ++
.../wnx/test_files/config/check_mk_dev_minimum.yml | 5 +
.../config/check_mk_dev_unit_testing.yml | 160 ++
.../wnx/test_files/config/check_mk_dev_utf16.yml | Bin 0 -> 7262 bytes
.../config/modular/.safe_config/global.yml | 104 ++
.../config/modular/.safe_config/logfiles.yml | 55 +
.../config/modular/.safe_config/logwatch.yml | 37 +
.../config/modular/.safe_config/main.yml | 16 +
.../config/modular/.safe_config/other.yml | 110 ++
.../test_files/config/modular/.safe_config/ps.yml | 4 +
.../config/modular/.safe_config/winperf.yml | 13 +
agents/wnx/test_files/config/modular/global.yml | 104 ++
agents/wnx/test_files/config/modular/logfiles.yml | 55 +
agents/wnx/test_files/config/modular/logwatch.yml | 37 +
agents/wnx/test_files/config/modular/main.yml | 26 +
agents/wnx/test_files/config/modular/other.yml | 110 ++
agents/wnx/test_files/config/modular/ps_custom.yml | 4 +
agents/wnx/test_files/config/modular/winperf.yml | 13 +
agents/wnx/test_files/config/mrpe_checks.cfg | 4 +
agents/wnx/test_files/config/readme.txt | 5 +
agents/wnx/test_files/ohm/.gitignore | 2 +
.../test_files/ohm/cli/OpenHardwareMonitorCLI.exe | Bin 0 -> 12288 bytes
.../test_files/ohm/cli/OpenHardwareMonitorLib.dll | Bin 0 -> 262656 bytes
agents/wnx/test_files/ohm/cli/readme.txt | 5 +
agents/wnx/test_files/ohm/gui/Aga.Controls.dll | Bin 0 -> 149504 bytes
.../test_files/ohm/gui/OpenHardwareMonitor.config | 92 ++
.../wnx/test_files/ohm/gui/OpenHardwareMonitor.exe | Bin 0 -> 489984 bytes
.../ohm/gui/OpenHardwareMonitor.exe.config | 7 +
.../test_files/ohm/gui/OpenHardwareMonitorLib.dll | Bin 0 -> 262656 bytes
.../test_files/ohm/gui/OxyPlot.WindowsForms.dll | Bin 0 -> 22016 bytes
agents/wnx/test_files/ohm/gui/OxyPlot.dll | Bin 0 -> 373248 bytes
agents/wnx/test_files/ohm/gui/readme.txt | 1 +
agents/wnx/test_files/ohm/readme.txt | 2 +
agents/wnx/test_files/plugins/async20.cmd | 4 +
agents/wnx/test_files/plugins/delay0.cmd | 4 +
agents/wnx/test_files/plugins/delay120.cmd | 4 +
agents/wnx/test_files/plugins/delay3.cmd | 4 +
agents/wnx/test_files/plugins/delay5.cmd | 4 +
agents/wnx/test_files/sections/test_output.txt | 1643 ++++++++++++++++++++
agents/wnx/test_files/sections/winperf_phydisk.out | 34 +
agents/wnx/test_files/shared_public/test.txt | 1 +
...0\271\320\273.\321\202\320\265\321\201\321\202" | 1 +
agents/wnx/test_files/unit_test/.gitignore | 3 +
agents/wnx/test_files/unit_test/summary.output | 5 +
agents/wnx/test_files/unit_test/test_plugin.cmd | 4 +
agents/wnx/test_files/unit_test/test_plugin.output | 2 +
agents/wnx/test_files/unit_test/test_plugin2.bat | 3 +
.../wnx/test_files/unit_test/test_plugin2.output | 3 +
agents/wnx/test_files/unit_test/write_dbg.exe | Bin 0 -> 85504 bytes
agents/wnx/test_files/work/bin/readme.txt | 1 +
agents/wnx/test_files/work/plugins/readme.txt | 1 +
agents/wnx/test_files/work/providers/readme.txt | 1 +
agents/wnx/test_files/work/utils/readme.txt | 1 +
agents/wnx/wamain.sln | 105 ++
agents/wnx/watest/check_watest.cmd | 11 +
agents/wnx/watest/fileout.dat | 1 +
agents/wnx/watest/pch.cpp | Bin 0 -> 430 bytes
agents/wnx/watest/pch.h | Bin 0 -> 1754 bytes
agents/wnx/watest/temp.check.out | 141 ++
agents/wnx/watest/test-cap.cpp | Bin 0 -> 766 bytes
agents/wnx/watest/test-carrier.cpp | Bin 0 -> 11980 bytes
agents/wnx/watest/test-cvt.cpp | Bin 0 -> 46526 bytes
agents/wnx/watest/test-eventlog.cpp | Bin 0 -> 4620 bytes
agents/wnx/watest/test-external-port.cpp | Bin 0 -> 7302 bytes
agents/wnx/watest/test-log.cpp | Bin 0 -> 23540 bytes
agents/wnx/watest/test-mrpe.cpp | Bin 0 -> 12154 bytes
agents/wnx/watest/test-ohm.cpp | Bin 0 -> 8054 bytes
agents/wnx/watest/test-player-cmdline.cpp | Bin 0 -> 1310 bytes
agents/wnx/watest/test-player.cpp | Bin 0 -> 24778 bytes
agents/wnx/watest/test-plugin.cpp | Bin 0 -> 72260 bytes
agents/wnx/watest/test-section_fileinfo.cpp | Bin 0 -> 22358 bytes
agents/wnx/watest/test-section_logwatchevent.cpp | Bin 0 -> 36600 bytes
agents/wnx/watest/test-section_providers.cpp | Bin 0 -> 12216 bytes
agents/wnx/watest/test-section_ps.cpp | Bin 0 -> 12742 bytes
agents/wnx/watest/test-section_wmi.cpp | Bin 0 -> 27976 bytes
agents/wnx/watest/test-service-processor.cpp | Bin 0 -> 3994 bytes
agents/wnx/watest/test-service.cpp | Bin 0 -> 12244 bytes
agents/wnx/watest/test-skype.cpp | Bin 0 -> 4756 bytes
agents/wnx/watest/test-spool.cpp | Bin 0 -> 9938 bytes
agents/wnx/watest/test-tools.cpp | Bin 0 -> 19014 bytes
agents/wnx/watest/test-winperf.cpp | Bin 0 -> 15432 bytes
agents/wnx/watest/test-wtools.cpp | Bin 0 -> 12684 bytes
agents/wnx/watest/test-yaml.cpp | Bin 0 -> 47942 bytes
agents/wnx/watest/watest.cpp | Bin 0 -> 4782 bytes
agents/wnx/watest/watest.vcxproj | 345 ++++
agents/wnx/watest/watest.vcxproj.filters | 137 ++
buildscripts/Jenkinsfile | 66 +
wnx_build.cmd | 2 +
301 files changed, 32891 insertions(+)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=d23343b97f…