GUI CSS: Refactored wato styles to nested structure meeting sasslint requirements...
[check_mk.git] / checkman / fileinfo
blobfc1a2f4f59934c0f5791544166100cbf12feb6d4
1 title: Age and size of files
2 agents: windows, linux, freebsd, macosx, solaris, aix
3 catalog: os/files
4 license: GPL
5 distribution: check_mk
6 description:
7   This check monitors the size and age of specific files
8   in the target host's filesystem.
9   You can set lower and upper
10   limits on both the modification time and the size of
11   a file. When the file is missing then the check will
12   go {UNKNOWN}.
14   This check needs some configuration in the agent,
15   as the agent needs to know the information about
16   which files need to be sent.
18   Currently Windows, Linux, FREEBSD, MACOSX and Solaris
19   agents supports this type of check.
21   For windows, the configuration is done in {check_mk.ini} in
22   the section {[fileinfo]}. Put one or more entries of the
23   format {path = C:\Some Dir\*.log} into this
24   section. The agent will send all files that match
25   the pattern. Wildcards are only allowed in the
26   filename part, not in the directory path.
28   For Linux, FREEBSD, MACOSX and Solaris the configuration
29   is done via {fileinfo.cfg} located in the {$MK_CONFDIR}
30   (usually {/etc/check_mk/fileinfo.cfg}). To add files to
31   the check, simply add one path pattern {/tmp/*.log} per line.
32   Wildcards or patterns can be used as usual on the console.
34 item:
35   The complete path name of the file is sent by
36   the agent (this is case sensitive even when monitoring
37   Windows).
39   Please note: when referring to the item in {check_parameters},
40   make sure that backslashes (contained in Windows paths) are
41   properly quoted. You need one escape level for the Python
42   string and one for the regular expression. If you prefix the
43   Python string with a {r}, then just the regular expression
44   needs its double backslash (see examples). Without the {r} you
45   would need four backslashes in a row in order to denote one
46   backslash in the file's path.
48 inventory:
49   For each file that the agent sends one service will
50   be created.