-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Checkmk:master' into checkpoint_fix
- Loading branch information
Showing
2,384 changed files
with
83,945 additions
and
55,183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
# -*- mode: sh -*- | ||
export PIPENV_VENV_IN_PROJECT=true | ||
|
||
# Enable packaging and Microcore and Livestatus builds to use our build cache. | ||
# See omd/README.md for further information. | ||
export NEXUS_BUILD_CACHE_URL=https://artifacts.lan.tribe29.com/repository/omd-build-cache | ||
|
||
layout_cmk_pipenv() { | ||
if [[ ! -f Pipfile ]]; then | ||
log_error 'No Pipfile found. Use `pipenv` to create a Pipfile first.' | ||
exit 2 | ||
fi | ||
|
||
local VENV=$(pipenv --bare --venv 2>/dev/null) | ||
if [[ -z $VENV || ! -d $VENV ]]; then | ||
make .venv | ||
fi | ||
|
||
export VIRTUAL_ENV=$(pipenv --venv) | ||
PATH_add "$VIRTUAL_ENV/bin" | ||
export PIPENV_ACTIVE=1 | ||
layout_cmk_uv() { | ||
VIRTUAL_ENV="$(pwd)/.venv" | ||
if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then | ||
make .venv | ||
fi | ||
|
||
PATH_add "$VIRTUAL_ENV/bin" | ||
export UV_ACTIVE=1 # or VENV_ACTIVE=1 | ||
export VIRTUAL_ENV | ||
} | ||
|
||
layout cmk_pipenv | ||
layout cmk_uv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[//]: # (werk v2) | ||
# mk-job: Discover running jobs | ||
|
||
key | value | ||
---------- | --- | ||
date | 2024-11-04T14:53:00+00:00 | ||
version | 2.4.0b1 | ||
class | fix | ||
edition | cre | ||
component | checks | ||
level | 1 | ||
compatible | yes | ||
|
||
Previously only finished jobs were discovered. This lead to problems with long | ||
running jobs: If a Service discovery is executed while the job was running, the | ||
job-service will vanished, because the running job is no longer discovered. | ||
|
||
Now also running jobs will be discoverd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[//]: # (werk v2) | ||
# mk-job: clean up old running jobs | ||
|
||
key | value | ||
---------- | --- | ||
date | 2024-11-05T13:53:56+00:00 | ||
version | 2.4.0b1 | ||
class | fix | ||
edition | cre | ||
component | checks | ||
level | 1 | ||
compatible | yes | ||
|
||
In certain situations the trap to move the file indicating a currently running | ||
job is not executed. | ||
|
||
The files are now removed if there is no process with the corresponding PID or the | ||
process command name does not contain mk-job. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[//]: # (werk v2) | ||
# mk-job: currently running job was not correctly reported | ||
|
||
key | value | ||
---------- | --- | ||
date | 2024-11-05T15:06:41+00:00 | ||
version | 2.4.0b1 | ||
class | fix | ||
edition | cre | ||
component | checks | ||
level | 1 | ||
compatible | yes | ||
|
||
`mk-job` creates multiple files: a stat file for finished jobs, and a running | ||
file for currently running jobs. The `check_mk_agent` then collects those files. | ||
Previously to this change, the sorting of those files was important. | ||
|
||
The first file belonging to a certain job determined the state of the aggregated job. | ||
|
||
Now the aggregated job will be set to running although the running file is not | ||
at first position. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[//]: # (werk v2) | ||
# oracle: Do not discover uptime service for template databases | ||
|
||
key | value | ||
---------- | --- | ||
date | 2024-11-27T09:55:10+00:00 | ||
version | 2.4.0b1 | ||
class | fix | ||
edition | cre | ||
component | checks | ||
level | 1 | ||
compatible | yes | ||
|
||
Template databases return `-1` for the uptime, which crashes the services. | ||
|
||
Databases having `-1` for uptime are no longer discovered. | ||
|
||
You have to execute service discovery to make the broken uptime services vanish. |
Oops, something went wrong.