Home Directory Plugins Others check_directories

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_directories

Rating
0 votes
Favoured:
1
Current Version
V1
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion
Owner
Hits
96044
Files:
FileDescription
check_directory.shcheck_directory.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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 ....
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