Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_file
167533
File | Description |
---|---|
check_file-1.1.tar.gz | check_file tarball |
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.
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.
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.