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
167639
Files:
FileDescription
check_file-1.1.tar.gzcheck_file tarball
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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...