Module: check_mk
Branch: master
Commit: 49a80c0f23391f8f911baeb34799a1d252fd0b58
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=49a80c0f23391f…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Oct 29 10:45:33 2018 +0100
Use Bandit from the virtual environment, not a random global one. Test the right files.
The config has been regenrated from the new Bandit version, and we included
a workaround for a strange performance problem.
Change-Id: Idb673b98ab03da746a0db33bdadc29662ae92b3c
---
bandit.yaml | 386 ++++++++++++++++++++++++++++++++++++++++++++-----------
tests/.gitignore | 1 +
tests/Makefile | 41 ++++--
3 files changed, 339 insertions(+), 89 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=49a80c0f23…
Module: check_mk
Branch: master
Commit: 8b28cb94e8f6725f5b91825738f478423bf18081
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b28cb94e8f672…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Fri Oct 26 16:20:27 2018 +0200
6646 FIX CPU utilization per process can be weighted by total CPU number
Processes that where monitored on CPU utilization did not have a consistent
behavior. On windows systems 100% CPU utilization implied all cores in the
system where at max load. On other systems every core contributed with a
100% at full load, thus the maximum load was N*100%.
This was also inconsistent with the system wide CPU utilization check
where, 100% is all cores at full load.
Consistency is brought is this werk, where 100% is all cores at full load
by default. For backwards compatibility with previous configurations, where
threshold rules where explicitly configured, the old behavior continues to
be used until the user explicitly chooses a particular behavior.
This option is available under CPU rescale maximum load in the process
discovery rules.
CMK-695
Change-Id: I63d420c74f2bbf762dec4615b49518e03e32404e
---
.werks/6646 | 24 +++++++
checks/ps | 2 +-
checks/ps.include | 46 +++++++++----
cmk/gui/plugins/wato/check_parameters.py | 35 +++++++---
tests/unit/checks/test_ps.py | 109 ++++++++++++++++++++++++++-----
5 files changed, 177 insertions(+), 39 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=8b28cb94e8…
Module: check_mk
Branch: master
Commit: 9051c48ef4bbe870ed3073c2679557da341742e0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9051c48ef4bbe8…
Author: Alex Zurhake <az(a)mathias-kettner.de>
Date: Mon Oct 29 11:29:42 2018 +0100
fix-.venv-target: Use pipenv sync to install python packages exactly as
specified in Pipfile.lock (fastest way).
Change-Id: I2596f811b355eb7937385eda15c7159b5a5016fe
---
Makefile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 330a7df..bebb292 100644
--- a/Makefile
+++ b/Makefile
@@ -500,9 +500,11 @@ Pipfile.lock: Pipfile
rm -rf .venv
.venv: Pipfile.lock
- $(PIPENV) install --dev
- $(PIPENV) clean
-# TODO: Part 2 of the hack for the Pipfile.lock target.
+# Remake .venv everytime Pipfile or Pipfile.lock are updated. Using the 'sync'
+# mode installs the dependencies exactly as speciefied in the Pipfile.lock.
+# This is extremely fast since the dependencies do not have to be resolved.
+ $(RM) -r .venv
+ $(PIPENV) sync --dev
touch .venv
# This dummy rule is called from subdirectories whenever one of the
Module: check_mk
Branch: master
Commit: c8bf878ff73bd8bf3bfc4dc6970ec4cd1ab89901
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c8bf878ff73bd8…
Author: Óscar Nájera <on(a)mathias-kettner.de>
Date: Thu Oct 11 17:13:48 2018 +0200
Refactor PS check for better readability. Include unit tests
This is a squashed commit of all changes. There are no functionalities in
here. Some bugs where fixed.
Moving a lot of stuff around
Some moving and splitting
try on win bug
PS info namedtuple and yapf
Separated linux process treatment
separate win process part
Shortening and moving plus test
Moving stuff
Cleaning tests
Solaris fix and organize parse tests
bug fix
move nametuple process
drop grabbed user in discovery
Drop extended_perf data variable
memory and time named tuples
join process matches logic
memory and time
wato rules
Test on deprecated windows agent
All outputs parsing tests
Refactor wmic info merger
Refactoring discovery
Services description
First tests on inventory
process matches test
Test discovery function
Test check
More tests on check
CMK-695
Check common refactoring
test cleanup params
cleanup for consistency
Drop unused variables
clean todo comments
cpu utilization refactor
lifetimes to independent functions
minor drop count variable
Process aggregator class
Moving stuff
CMK-695
Change-Id: Iba2e71df2341cca8cc22ce4ffece4f159d2881a0
---
agents/check_mk_agent.solaris | 1 -
checks/ps | 200 +++++-----
checks/ps.include | 834 ++++++++++++++++++++++--------------------
cmk_base/check_api.py | 2 +-
cmk_base/config.py | 2 +-
tests/unit/checks/test_ps.py | 470 ++++++++++++++++++++++++
6 files changed, 1024 insertions(+), 485 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=c8bf878ff7…