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…