check_multiple_file.sh

check_multiple_file

Allow to check files ( sizes, ages ... ) Use nagios_libs.sh  and hobbit gif (see screenshot in project link).

Synopsis:

check_multiple_file.sh [what stat to check] -f  .... 
Flag Description
-sThe file should have at least this taile (file> size)
-SThe file must be smaller
-efile must exist
-tDoes Minimum Age of file (must have more than X minutes)
-TMax Age of file (must be less than X minutes)
-fFile

Example:

To check the file before testing, example:

check_multiple_file.sh -e -S2048 -f /etc/sysctl.conf -T60 -e -f /etc/mtab

Licences:

Id: check_multiple_file.sh, v 1.4 2010/05/21 7:31:51 doguete Exp $ Emmanuel Doguet