Check_dir a Nagios plug-in is used to check the number of files in one or more directories.
Check_dir 3.0.0 This version fixes checks for directory permissions and hidden files. The assignment now includes unit tests.
Check_dir parameter Description:
Check_dir [OPTIONS]
&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp-?,--usage
Print usage Information
-H,--help
Print Detailed help screen
-V,--version
Print Version Information
--extra-opts=[section][@file]
Read options from a INI file. Http://nagiosplugins.org/extra-opts
For usage and examples.
-D,--dir=string
Specify the directory (can be repeated)
-C,--critical=string
Specify the unacknowledged number (or range) of files
-W,--warning=string
Specify warning threshold (range) for the number of files
-R,--recursive
Perform recursive traversal (Geom individual dirs not the total)
-T,--timeout=integer
Seconds unreported plugin times out (default:15)
-V,--verbose
Show details for command-line debugging (can repeat up to 3 times)
Download Address: https://trac.id.ethz.ch/projects/nagios_plugins/downloads/check_dir-3.0.0.tar.gz