Refactoring: Changed all check parameters starting with a 'p' to the new rulespec...
[check_mk.git] / agents / cfg_examples / filestats.cfg
blobff72cc4035a73003b1eca2d04d8b6a9f801153d8
1 # This is an example configuration for the mk_filestats plugin.
2 # To get an extensive elaboration on these values, run "mk_filestats.py --help"
3 [DEFAULT]
4 # This section is optional. You can use it to set default options,
5 # which are applied to all sections. In particular, you can
6 # override the hard coded default of "output: file_stats"
7 output: count_only
9 [aix agent files]
10 # The section name will be used as the item name by Check_MK
11 # get all files in agent dir
12 input_patterns: ~/git/check_mk/agents/
13 #   - "~" will be expanded (using os.path.expanduser)
14 #   - ommiting the last slash and/or adding an asterisk changes nothing
15 #   - we process anything that is matched by the above *globbing*
16 #     pattern. If it's a directory, recursively process all of
17 #     its content.
19 # filter for files ending in ".aix"
20 filter_regex: .*\.aix
21 #   - also available: filter_regex_inverse
22 #   - regex filters are applied first
24 # filter for files smaller than 1MB and at least one hour old
25 filter_size: <1048576
26 filter_age: >=3600
27 # choose the type of output aggregation:
28 output: file_stats
29 #  - display the full file stats (which is the default)
30 #  - also available: count_only, extremes_only
32 [$ection with funny characters %s &! (count files in ~)]
33 # get all files in my home directory
34 input_patterns: ~
35 # don't filter them at all
36 # these are a lot, just report the count
37 output: count_only
39 [log files]
40 input_patterns: "/path/with space/*.log" /var/log
41 # the globbing pattern /var/log/*.log would only match
42 # top level logfiles, we want all of them, so filter by regex
43 filter_regex: .*\.log
44 # only report oldest/newest/smallest/largest
45 output: extremes_only