Module: check_mk
Branch: master
Commit: 2dc7becbea1097ca61b7677be7cbfbb8c6a616b0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2dc7becbea1097…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Thu Dec 6 11:39:14 2018 +0100
6945 mk_filestats: Plugin to monitor files (Count, Age, Size)
A new plugin is introduced with a functionality similar to fileinfo.
It reports count, size and age of sets of files specified using a
globbing pattern.
However, this plugin is designed with large filesets in mind.
It therefore provides different options to reduce the data reported to
the Check_MK server and/or to avoid unnecessary stat calls on the client.
For more information, please refer to the "--help" option of the plugin
and the example configration file in agents/cfg_examples.
CMK-1059
Change-Id: Icf99831444a5258029ef37233406d515d1cb7f61
---
.werks/6945 | 18 +
agents/cfg_examples/mk_filestats.cfg | 45 ++
agents/plugins/mk_filestats.py | 519 +++++++++++++++++++++
checkman/filestats | 32 ++
checkman/filestats.count_only | 31 ++
checkman/filestats.extremes_only | 32 ++
checks/filestats | 264 +++++++++++
cmk/gui/plugins/wato/check_parameters/filestats.py | 130 ++++++
.../checks/generictests/datasets/filestats_1.py | 72 +++
.../generictests/datasets/filestats_count_only.py | 31 ++
tests/unit/cmk/gui/test_watolib.py | 2 +
tests/unit/plugins/test_mk_filestats.py | 117 +++++
12 files changed, 1293 insertions(+)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=2dc7becbea…