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

Rating
2 votes
Favoured:
0
Hits
166963
Files:
FileDescription
check_file-1.1.tar.gzcheck_file tarball
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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.
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)
bybrownie, March 23, 2011
when i download it, i get a message that the file is corrupt...