Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 276ce4d3dc58628a09b8e3f58d5dce4ffd483e19
https://github.com/tribe29/checkmk/commit/276ce4d3dc58628a09b8e3f58d5dce4ff…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
A .werks/11490
M cmk/base/core.py
M cmk/base/core_config.py
M cmk/base/core_nagios.py
M cmk/base/modes/check_mk.py
M tests/integration/cmk/base/test_modes.py
Log Message:
-----------
11490 Remove cmk -B and cmk -C commands
During the activation of configuration changes we have multiple subsequent steps:
LI: Acquire the activation lock
LI: Create the core config (incl. backup and restore in case of issues)
LI: Precompile some more files for the core
LI: Restart of the core or reload of the config
The most common commands to execute the activation or parts of the procedure
are "cmk -U" for just creating the configuration or "cmk -O" for creating the
configuration and reloading the core config and "cmk -R" for creating the
configuration and restarting the core process.
The commands "cmk -B" (Create core config) and "cmk -C" (precompile some files)
were providing direkt access to parts of the "cmk -U" command but rarely used.
To simplify things we are now dropping both, the "cmk -B" and "cmk -C"
commands. If you used one of these before, please use "cmk -U" in the future.
Change-Id: I9e2a829a2466f9ec8bdc845eafa33992a726a51e
Commit: 98f900b081900c97feb5caf1a38eff8521f6f86c
https://github.com/tribe29/checkmk/commit/98f900b081900c97feb5caf1a38eff852…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M cmk/base/core.py
M cmk/base/core_config.py
M cmk/base/modes/check_mk.py
Log Message:
-----------
Consolidate monitoring config creation
We now have two scenarios left:
a) cmk -U: Create the core config
b) cmk -O / cmk -R: Create the core config + reload or restart of the core
Both call paths are now using the `do_create_config` function for
"create the core config" step and both are now also using the same
logic for backing up and restoring the objects file which was missing
with "cmk -U" before.
Another remaining difference is that cmk -U does not respect the
activation lock. This will be streamlined in the next commit.
Change-Id: I16a7b2394ac6375c06ac570436bfd99e0f42dff2
Commit: 098f49182a5bf8b2aafa1974e660b71cd3ad091d
https://github.com/tribe29/checkmk/commit/098f49182a5bf8b2aafa1974e660b71cd…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M cmk/utils/store.py
M tests/unit/cmk/utils/test_store.py
Log Message:
-----------
Add context manager for non blocking locks
Along the way:
* Cleanup the existing blocking lock test
* Add test for non blocking file locking
* Add tests and move some initialization to common fixture locked_file.
Change-Id: I3124cd0e7e4ffc4e439813781561edd45a15a46e
Commit: 58821bdca77b9c695df8afcb4792ba6dc282367e
https://github.com/tribe29/checkmk/commit/58821bdca77b9c695df8afcb4792ba6dc…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M cmk/base/core.py
Log Message:
-----------
Activation lock: Refactor to context manager; use common locking logic
Change-Id: Ie008e103abbcd9332c27f3474b37fab17cf3c748
Commit: 256e347cb8f6cf6dfbdea8c36da28a3a83023d87
https://github.com/tribe29/checkmk/commit/256e347cb8f6cf6dfbdea8c36da28a3a8…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M cmk/base/modes/check_mk.py
Log Message:
-----------
Also use activation lock for config creation only
The lock is acquired by "create config + reload/restart" and is expected
to lock a) the core config creation and b) core process restarts.
Since "cmk -U" is doing the "create config" step, it also has to respect
the same lock.
Change-Id: I4cabe445d6818b7e20311f9bbadc0cc84a2bb978
Compare: https://github.com/tribe29/checkmk/compare/342ae7754473...256e347cb8f6
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 3775f0d81f380416faf5121092d8c29fdd20dab3
https://github.com/tribe29/checkmk/commit/3775f0d81f380416faf5121092d8c29fd…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M cmk/base/data_sources/_abstract.py
M cmk/fetchers/_base.py
M cmk/fetchers/type_defs.py
M cmk/snmplib/type_defs.py
Log Message:
-----------
Move TRawData one layer down
TRawData is a genericisation of SNMPRawData and AgentRawData. We move
it one layer down to avoid cycles in fetcher typing. Fetchers are but
users of the type so that defining it one layer below is not wrong.
CMK-5419
Change-Id: Ia805348489637bcc84999b3c4b10a45ceb55f79e
Commit: 342ae77544738604a43ad64560d3acd291995314
https://github.com/tribe29/checkmk/commit/342ae77544738604a43ad64560d3acd29…
Author: Christoph Rauch <christoph.rauch(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M cmk/gui/openapi.py
M cmk/gui/plugins/openapi/restful_objects/decorators.py
M cmk/gui/plugins/openapi/restful_objects/type_defs.py
Log Message:
-----------
REST-API: remove spec-generation from import-time
* imports of the openapi-module take quite a long time
due to spec-generation and code-example rendering.
This has now been deferred to the console, where
"make openapi" has to be called to generate the spec.
* The runtime behaviour stays the same.
Change-Id: I76f0df60f1ee6a6392456535d638bf067a210132
Compare: https://github.com/tribe29/checkmk/compare/fbfbd2573766...342ae7754473
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 804c96d43e9979b6ad68ca07b7992fbab34e7c1c
https://github.com/tribe29/checkmk/commit/804c96d43e9979b6ad68ca07b7992fbab…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M livestatus/src/Column.cc
M livestatus/src/Column.h
M livestatus/src/TableHostGroups.cc
M livestatus/src/TableHosts.cc
M livestatus/src/TableServiceGroups.cc
M livestatus/src/TableServices.cc
M livestatus/src/test/test_CustomVarsDictFilter.cc
Log Message:
-----------
Improved naming a bit now that we are more flexible. More auto usage.
Change-Id: I4e5282c707689db8444d2fe56e83460adc499fa4
Commit: 9278cd45c322d5c4f389f32ce41acf14669df9b9
https://github.com/tribe29/checkmk/commit/9278cd45c322d5c4f389f32ce41acf146…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M livestatus/src/Column.cc
Log Message:
-----------
Centralize funny nullptr handling.
Change-Id: I4b0ec5cf1311666c7de04d4e619189d9a66b8382
Compare: https://github.com/tribe29/checkmk/compare/c9bf1b0ed6c7...9278cd45c322
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: 4a4b7629376e704c11a4dac42ade24804f189cab
https://github.com/tribe29/checkmk/commit/4a4b7629376e704c11a4dac42ade24804…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M tests/unit/cmk/fetchers/test_controller.py
Log Message:
-----------
[CMK-5259] - test controller.write_bytes
Change-Id: Iaff293a3468ad322e2eb668ae6aec807580dafc1
Commit: 9a6a16bf9af6fe5a168f37b7796940c01ff4f418
https://github.com/tribe29/checkmk/commit/9a6a16bf9af6fe5a168f37b7796940c01…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
A .werks/11461
Log Message:
-----------
11461 SEC Windows agent: Improved protection of configuration files
With this fix only System and Administrators can access main configuration
files of the Windows agent, check_mk.user.yml and check_mk.bakery.yml, thus
preventing unauthorized access to potentially sensitive data.
Change-Id: I910bff5ac88f4831d682d4cd38bb6245877cb94d
Commit: 4344e52a0dc83b171d9e689f6fa9d8c2cd094823
https://github.com/tribe29/checkmk/commit/4344e52a0dc83b171d9e689f6fa9d8c2c…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
A .werks/11462
Log Message:
-----------
11462 SEC Windows agent sets access rights also after clean installation
Windows agent didn't set access rights when installed from the scratch.
With this fix the problem had been eliminated
Change-Id: I3d226d194c466e60116f0b3e5702f6b077b547b1
Commit: 5db88d004cf5d5785429ed1e6afb03ebfb7c91dd
https://github.com/tribe29/checkmk/commit/5db88d004cf5d5785429ed1e6afb03ebf…
Author: Tom Baerwinkel <tom.baerwinkel(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M tests/integration/cmk/gui/test_webapi.py
Log Message:
-----------
Fix integration test
Change-Id: I8c9a61189a64aa4ab848db9c4c46a91fa3f490e9
Compare: https://github.com/tribe29/checkmk/compare/21fc578adbcb...5db88d004cf5
Branch: refs/heads/1.6.0
Home: https://github.com/tribe29/checkmk
Commit: c6fd0072ab12db5533c4da80e2965282f6b60723
https://github.com/tribe29/checkmk/commit/c6fd0072ab12db5533c4da80e2965282f…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2020-09-10 (Thu, 10 Sep 2020)
Changed paths:
A .werks/11461
Log Message:
-----------
11461 SEC Windows agent: Improved protection of configuration files
With this fix only System and Administrators can access main configuration
files of the Windows agent, check_mk.user.yml and check_mk.bakery.yml, thus
preventing unauthorized access to potentially sensitive data.
Change-Id: I910bff5ac88f4831d682d4cd38bb6245877cb94d
Commit: a59f46ea1bb2cab5a9f04adf9a1c5a84d752dc23
https://github.com/tribe29/checkmk/commit/a59f46ea1bb2cab5a9f04adf9a1c5a84d…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2020-09-10 (Thu, 10 Sep 2020)
Changed paths:
A .werks/11462
Log Message:
-----------
11462 SEC Windows agent sets access rights also after clean installation
Windows agent didn't set access rights when installed from the scratch.
With this fix the problem had been eliminated
Change-Id: I3d226d194c466e60116f0b3e5702f6b077b547b1
Compare: https://github.com/tribe29/checkmk/compare/bc2915445018...a59f46ea1bb2
Branch: refs/heads/master
Home: https://github.com/tribe29/checkmk
Commit: f3a5e029120056c8a331b929ab8c939dba8f562c
https://github.com/tribe29/checkmk/commit/f3a5e029120056c8a331b929ab8c939db…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M tests/unit/cmk/base/data_sources/test_cmd_caching.py
Log Message:
-----------
Fix discovery caching test
Now, the test reflects what really happens in the code.
The differences between the test and the code were hidden because
the tests run in debug mode where exceptions are not re raised.
Change-Id: I7553e6ea32520386a43dee6e2f619e6e3ce81d12
Commit: 21fc578adbcbfe304b0a18c62d8231ff5d8fb6f6
https://github.com/tribe29/checkmk/commit/21fc578adbcbfe304b0a18c62d8231ff5…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-09-11 (Fri, 11 Sep 2020)
Changed paths:
M tests/unit/cmk/base/data_sources/test_cmd_caching.py
Log Message:
-----------
Test `cmd_caching` in debug mode
This improves the feedback given by the `cmd_caching` tests in that
the tests now re raise exceptions.
Change-Id: I2c2a973409e7d5f32a403aa687e440f07e3247f4
Compare: https://github.com/tribe29/checkmk/compare/1d914f057018...21fc578adbcb