Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_filesize
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!
Return OK if its smaller and Warning or Error if Bytesize is greater as given parameters.
The script is written for Linux/Unix. Its tested on RH/CentOS, SuSE, Debian, but should work on all Linux/Unix system with a sh or bash ;)
Usage: check_filesize.sh -w BYTESIZE -c BYTESIZE FILE [FILE2 FILE3 ...]
Usage: check_filesize.sh -h,--help
Options:
FILES Check this file(s)
-w Bytes Warn if filesize greater then this
-c Bytes Critical filesize greater this
# --------------------------------------------------------------------
# check if ...
# 1) ... file exists
# 2) ... has the correct filesize
# --------------------------------------------------------------------
This plugin is NOT developped by the Nagios Plugin group.
Please do not e-mail them for support on this plugin, since
they won't know what you're talking about.
For contact info, read the plugin itself...
# changes 1.3
# - just update license information
# changes 1.2
# - look for logger path via which command
# - fixes for solaris support
# changes 1.1
# - add license information
# check if ...
# 1) ... file exists
# 2) ... has the correct filesize
# --------------------------------------------------------------------
This plugin is NOT developped by the Nagios Plugin group.
Please do not e-mail them for support on this plugin, since
they won't know what you're talking about.
For contact info, read the plugin itself...
# changes 1.3
# - just update license information
# changes 1.2
# - look for logger path via which command
# - fixes for solaris support
# changes 1.1
# - add license information
Reviews (0)
Be the first to review this listing!