Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_file_count.sh
1.2
2015-03-17
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
- Nagios Fusion
GPL
9691
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!
Also supports include/exclude filelists and multiline output
Checks a given path for a amount of files and returns warning/critical including performance data
Usage: check_file_count.sh -p path -w warning -c critical -d max-depth -f filelist [-e|-m 1]
-w warning count
-c critical count
-p path to monitor
-m flag if path is a mounted path
-f pipe separated list of files includes or excludes
-e exclude/include list of files flag
-d max-depth, how deep to dive into folders
e.g.
# mounted path,max depth 1 => folder only
$ check_file_count.sh -p '/mnt/hydpoll' -w 3000 -c 5000 -f "file_to_ignore1|Thumbs.db" -e 1 -d 1 -m 1
Usage: check_file_count.sh -p path -w warning -c critical -d max-depth -f filelist [-e|-m 1]
-w warning count
-c critical count
-p path to monitor
-m flag if path is a mounted path
-f pipe separated list of files includes or excludes
-e exclude/include list of files flag
-d max-depth, how deep to dive into folders
e.g.
# mounted path,max depth 1 => folder only
$ check_file_count.sh -p '/mnt/hydpoll' -w 3000 -c 5000 -f "file_to_ignore1|Thumbs.db" -e 1 -d 1 -m 1
Reviews (0)
Be the first to review this listing!