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_file_size

Rating
0 votes
Favoured:
0
Current Version
1.0.1
Last Release Date
2015-07-15
Compatible With
  • Nagios 3.x
License
GPL
Hits
10891
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!
Has not been tested with other versions of Nagios other than 3.1.4.
Options:
-r Check if file is too small rather than too large. Warn size is not required and will be ignored if it is when checking if file is too small.

e.g. file size expected is 4096 bytes but is only
1024 bytes.

./check_file_size -c 4095 -r -f /tmp/< somefile >

Usage:
check_file_size [-w < bytes >] [-c < bytes >] [-r ] -f file
check_file_size [-h | --help]
check_file_size [-V | --version]

[-c < bytes >] File must be no larger than this size (default: warn 1024000 bytes, crit 4096000)
[-c < bytes > -r] File must be no smaller than this size (default: crit 4096000 bytes)