Branch: refs/heads/2.1.0
Home: https://github.com/tribe29/checkmk
Commit: 17e96d63778d653b45a8a13b90a3e7e9bbb10919
https://github.com/tribe29/checkmk/commit/17e96d63778d653b45a8a13b90a3e7e9b…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
R checks/systemd_units
A cmk/base/plugins/agent_based/systemd_units.py
M tests/unit/checks/test_generic_legacy_conversion.py
R tests/unit/checks/test_systemd_units.py
A tests/unit/cmk/base/plugins/agent_based/test_systemd_units.py
M tests/unit/cmk/gui/plugins/wato/check_parameters/test_plugin_vs_wato.py
Log Message:
-----------
Migrate Systemd units check plugin
Change-Id: I2e6a0c6a44a82f584233a5c1a6b97133275a6bea
Commit: f0d05822cb2fdc56f8c80e79c96121d8f75dbfdf
https://github.com/tribe29/checkmk/commit/f0d05822cb2fdc56f8c80e79c96121d8f…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M cmk/base/plugins/agent_based/systemd_units.py
M tests/unit/cmk/base/plugins/agent_based/test_systemd_units.py
Log Message:
-----------
small refactorings
Change-Id: I59ece1c32d2aac0ca7ba4f8e93082faddd7b4c1e
Commit: 0d0045370ec026a301486a23488b888238732c4d
https://github.com/tribe29/checkmk/commit/0d0045370ec026a301486a23488b88823…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M cmk/base/plugins/agent_based/systemd_units.py
Log Message:
-----------
user f strings in systemd units checkplugin
Change-Id: I83340716680abde574f63fd5781ee1decd4b5575
Commit: 2582e1f5cf7b1bc5159c4df13677951b289e34b2
https://github.com/tribe29/checkmk/commit/2582e1f5cf7b1bc5159c4df13677951b2…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M cmk/base/plugins/agent_based/systemd_units.py
Log Message:
-----------
add typing hints
Change-Id: I62a56bee17f23b20b6c0333b52aedde8c0d2383b
Commit: f68b1daf8f179cd68a24b749fe4ae86d2c561eba
https://github.com/tribe29/checkmk/commit/f68b1daf8f179cd68a24b749fe4ae86d2…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M cmk/base/plugins/agent_based/systemd_units.py
M tests/unit/cmk/base/plugins/agent_based/test_systemd_units.py
Log Message:
-----------
refactor systemd parsing algorithm
prefer to use early returns
Change-Id: I0d3fc533c6119b056f4f36692e034ec59721a21b
Commit: 209fedc74a1874cbcb03c824170c21b86a94e858
https://github.com/tribe29/checkmk/commit/209fedc74a1874cbcb03c824170c21b86…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M cmk/base/plugins/agent_based/systemd_units.py
Log Message:
-----------
refactor parsing function
split into two separate functions. Make it clearer if to understand if
we add a third section for status parsing.
Change-Id: I60048ffa96299cf947fbbc08c4f00eeb03ea04cd
Commit: 631f75a6e10c320fe08da134f75e7c4900e4594e
https://github.com/tribe29/checkmk/commit/631f75a6e10c320fe08da134f75e7c490…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M agents/check_mk_agent.linux
M cmk/base/plugins/agent_based/systemd_units.py
M tests/unit/cmk/base/plugins/agent_based/test_systemd_units.py
Log Message:
-----------
Add explicit status parsing to systemd checks
The 'systemctl status' command gives exact details how long a service
has been in a given state. This is more precise than guessing ourselves from
past observed states.
Change-Id: Id06b88c50b7bd09617be54d3b3ff8ee04e7875f1
Commit: 9acbff98b34e1cfd2d380de90b45ac45e6494930
https://github.com/tribe29/checkmk/commit/9acbff98b34e1cfd2d380de90b45ac45e…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M cmk/base/plugins/agent_based/systemd_units.py
Log Message:
-----------
Fix systemd services discovery
the new api always adds an empty dict at the end of the params. An empty
dict is equivalent to no filter for systemd service discovery. Replace
the empty dict and be specific we do not want to filter anything.
Change-Id: I97d0382140518d7f20005c487ee93c51ee23ffb2
Compare: https://github.com/tribe29/checkmk/compare/a2be7e59ac5c...9acbff98b34e
Branch: refs/heads/2.1.0
Home: https://github.com/tribe29/checkmk
Commit: 0ff80e65cf7e995fda03a1ac09655ffe10ddc007
https://github.com/tribe29/checkmk/commit/0ff80e65cf7e995fda03a1ac09655ffe1…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
A .werks/14027
M agents/check_mk_agent.freebsd
M agents/check_mk_agent.linux
M agents/check_mk_agent.openwrt
Log Message:
-----------
FIX:14027 async agent zombie process
The set_up_path function always appended "/usr/local/bin" to the PATH
variable and was called in the main loop. This means the environment
is growing with each iteration. Most UNIXes impose a limit on the
total size of the environment [1]. Once the limit is reached any
attempt to execute a program will fail with E2BIG error, visible
via strace. With the infinite loop this leads to a zombie process
that consumes a lot of CPU.
[1] https://man7.org/linux/man-pages/man2/execve.2.html
FIX FEED-6874
Change-Id: I924fd52e40d4908c6685932a25969e0360b3757f
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 56fbd90ec922fed5cfe516e1725447439021fd50
https://github.com/tribe29/checkmk/commit/56fbd90ec922fed5cfe516e1725447439…
Author: Max Linke <max.linke(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
A .werks/14027
M agents/check_mk_agent.freebsd
M agents/check_mk_agent.linux
M agents/check_mk_agent.openwrt
Log Message:
-----------
FIX:14027 async agent zombie process
The set_up_path function always appended "/usr/local/bin" to the PATH
variable and was called in the main loop. This means the environment
is growing with each iteration. Most UNIXes impose a limit on the
total size of the environment [1]. Once the limit is reached any
attempt to execute a program will fail with E2BIG error, visible
via strace. With the infinite loop this leads to a zombie process
that consumes a lot of CPU.
[1] https://man7.org/linux/man-pages/man2/execve.2.html
FIX FEED-6874
Change-Id: I924fd52e40d4908c6685932a25969e0360b3757f
Branch: refs/heads/2.1.0
Home: https://github.com/tribe29/checkmk
Commit: 670cceb7da9a44b325c13aff4de16a5d17b0acd9
https://github.com/tribe29/checkmk/commit/670cceb7da9a44b325c13aff4de16a5d1…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M agents/wnx/install/resources/check_mk.user.yml
M agents/wnx/install/resources/check_mk.yml
M agents/wnx/src/common/cfg_yaml.h
M agents/wnx/src/engine/cfg.h
M agents/wnx/src/engine/engine.vcxproj
M agents/wnx/src/engine/engine.vcxproj.filters
M agents/wnx/src/engine/groups.cpp
A agents/wnx/src/engine/providers/perf_cpuload.cpp
A agents/wnx/src/engine/providers/perf_cpuload.h
M agents/wnx/src/engine/service_processor.cpp
M agents/wnx/src/engine/service_processor.h
A agents/wnx/watest/test-section_perf_cpuload.cpp
M agents/wnx/watest/test-yaml.cpp
M agents/wnx/watest/watest.vcxproj
M agents/wnx/watest/watest.vcxproj.filters
Log Message:
-----------
Add perf method to obtain wmi_cpuload section
New section provides wmi_cpuload functionality without
usage of the WMI API(as we hope).
The code is not enabled.
CMK-10311
Change-Id: I1d5e4ccda0d57219d8ecafbdfa2eac5d408dcdcd
Commit: adca3a63887db546df5786af8616de7cebb9d8c3
https://github.com/tribe29/checkmk/commit/adca3a63887db546df5786af8616de7ce…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M tests/unit/cmk/base/plugins/agent_based/test_wmi_cpuload.py
Log Message:
-----------
Add test case for use_perf wmi_cpuload section
wmi_cpuload section obtained with use_perf method
contains only mandatory data.
CMK-10311
Change-Id: I9be41d4ce93dae41d8f20f06dfb6b495549ef2e2
Commit: 0e1382ea6a21020420f94eaddfa3ace62583d6a2
https://github.com/tribe29/checkmk/commit/0e1382ea6a21020420f94eaddfa3ace62…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M agents/wnx/src/engine/providers/perf_cpuload.cpp
M agents/wnx/src/engine/service_processor.cpp
M agents/wnx/watest/test-section_perf_cpuload.cpp
Log Message:
-----------
Fix perf method to obtain wmi_cpuload section
- Replace win32_Processor with win32_ComputerSystem
- Add Name to the system subsection to satisfy wmi parser
The code is still not enabled.
CMK-10311
Change-Id: I2ee0e6c832c7cdf2598aca398e4599fa8d463ab9
Commit: 9634a5b5712fafab5a889fbfbc8bad0ab167f746
https://github.com/tribe29/checkmk/commit/9634a5b5712fafab5a889fbfbc8bad0ab…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M agents/wnx/include/tools/_misc.h
Log Message:
-----------
Fix some old win API `const string&` -> `string_view`
Change-Id: I6b961f8d000c8dd9c6854bc63d8848ce3a05cba1
Commit: e8dc6b3dd0af72ebc967bad50040d1781102a953
https://github.com/tribe29/checkmk/commit/e8dc6b3dd0af72ebc967bad50040d1781…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M agents/wnx/src/common/cfg_info.h
Log Message:
-----------
Set default wmi_timeout value in win agent to 5
As in factory config
Change-Id: I14f459f9eac41359d9353b6d8d2dd0826b1f238a
Commit: 9fb992c97152d4998ca61c7bc9b9a0bd53395c0b
https://github.com/tribe29/checkmk/commit/9fb992c97152d4998ca61c7bc9b9a0bd5…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2022-04-25 (Mon, 25 Apr 2022)
Changed paths:
M agents/wnx/src/common/wtools.cpp
Log Message:
-----------
Fix processing of cases when value is missing in WMI
Add log and empty string
Change-Id: If12a1f0e5e5b49522d4bb83faf2f389a9b4ecf1e
Compare: https://github.com/tribe29/checkmk/compare/530131fb8cfe...9fb992c97152