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 | |
---|---|---|
-s | The file should have at least this taile (file> size) | |
-S | The file must be smaller | |
-e | file must exist | |
-t | Does Minimum Age of file (must have more than X minutes) | |
-T | Max Age of file (must be less than X minutes) | |
-f | File |
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