Home Directory Plugins check_filesize

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


Remember Me


0 votes
Current Version
Last Release Date
Compatible With
  • Nagios 3.x

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Check if size of the specified files is smaller then given parameters.
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
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