Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Bash shell script to check min/max size of files and/or directories. Relies on "stat" and "du", which most distributions should have. Usage: check_file_size.sh [--minwarn size] [--maxwarn size] [--mincrit size] [--maxcrit size] [-m
Current Version
Last Release Date
June 16, 2009
Owner
Billy CHEN
Bash shell script to check min/max size of files and/or directories. Relies on "stat" and "du", which most distributions would have.
Usage: check_file_size.sh [--minwarn size] [--maxwarn size] [--mincrit size] [--maxcrit size] [-m|--missingok] [-v|--verbose]
--minwarn,maxwarn,mincrit,maxcrit all take size in bytes --missingok prevents errors from being raised if passed in files are missing
Examples:
# Warn if /tmp is above 1GB, Critical if above 2GB sh check_file_size.sh --maxwarn 1000000000 --maxcrit 2000000000 /tmp
# Warn if any one file in /tmp is above 1GB, Critical if above 2GB sh check_file_size.sh --maxwarn 1000000000 --maxcrit 2000000000 /tmp/*
Thanks a lot, I'm using nrpe and it works well with it
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!