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
96383
Files:
FileDescription
check_directory.shcheck_directory.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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