Linux

check_file

Description:

check_file is a nagios plugin for checking a timestamp on a file. It uses the mtime value and localtime on the server and compares the difference of those against a given critical and warning value.

Current Version

Last Release Date

June 16, 2009

Compatible With


Project Files
Project Notes
check_file is a nagios plugin for checking a timestamp on a file. It uses the mtime value and localtime on the server and compares the difference of those against a given critical and warning value. It is written in C and has been tested under Linux. It should be easily portable to other UNIX and without too much trouble to any POSIX OS. -p must be given on the command line and is the path to the file or directory to monitor. -e will only check for the existence of the file. This can not be used with -w and -c. -w is the warning threshold. If you give -w 60 it will warn if the file is older than 60 seconds. thresholds are only in and will only ever be in seconds. -c is the critical threshold. If you give -w 60 -c 65 it will warn from 60 seconds until 64 seconds then be critical from 65 seconds onward. -i will invert the options. used with -e it will check for the non-existence of the file. Used with -w and -c it will check the file is NOT newer than the times given. Read the file README for contact information. If anyone has any feedback I'd be grateful to hear it.
Reviews (1) Add a Review
Corrupt
by brownie, March 31, 2011

when i download it, i get a message that the file is corrupt...



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
1 (2)
Favorites
0
Views
167,618