Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Your review has been submitted and is pending approval.
This plugin will give you the number of file or subdirectory in a directory and can also give its size. The output of the script allows for a graphical If you have an idea for other options ....
Current Version
V1
Last Release Date
June 17, 2011
Owner
Community Member
Download URL
https://exchange.nagios.org/wp-content/uploads/project-files/2011/06/check_directory.sh
Compatible With
check_directory.sh
Options :
-w, --warning NUMBER (required) NUMBER necessary to result in warning status -c, --critical NUMBER (required) NUMBER necessary to result in critical status -p, --path STRING (required) Path for the execution -h, --hidden STRING yes=count hidden subdirectory or file (default=no) -f, --filter STRING Only for the option countfiledirectory. Eg: For filter file with the extension log, tape -f log -o --option STRING (required) sizedirectory=Display results in megabyte for directory countsubdirectory=Count subdirectory in directory, not in sub-subdirectory countfiledirectory=Count file in directory, not in sub-subdirectory
Example 1 : $0 -o countsubdirectory -p /var/log/ -h yes -w 400 -c 450 Example 2 : $0 -o sizedirectory -p /var/log/ -w 80 -c 150 Example 3 : $0 -o countfiledirectory -p /var/log/ -f log -w 40 -c 45
You must be logged in to submit a review.
To:
From: