check_dir is a Nagios plugin to monitor the number of files in one or more directories.


Usage: check_dir [OPTIONS]

-?, --usage
Print usage information

-h, --help
Print detailed help screen

-V, --version
Print version information

Read options from an ini file. See
for usage and examples.

-d, --dir=STRING
specify the directory (can be repeated)

-c, --critical=STRING
specify the critical number (or range) of files

-w, --warning=STRING
specify warning threshold (range) for the number of files

-r, --recursive
perform recursive traversal (checks individual dirs not the total)

-t, --timeout=INTEGER
Seconds before plugin times out (default: 15)

-v, --verbose
Show details for command-line debugging (can repeat up to 3 times)