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
10345
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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)