Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Path Age
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 the age of an individual file
**** Example: Monitor the age of a log file to ensure it is being written to on a regular basis.
-- Check the age of the newest file in a directory
**** Example: Monitor the age of a backup folder to ensure that nightly backups are getting created and are no older than 24 hours.
-- Check the age of the oldest file in a directory
**** Example: Monitor the age of a "queue" directory to ensure that the oldest "job" in the queue is no older than a specified limit.
-- Check the age of a non-existent file or directory
**** Example: Monitor the age of error log that only exists if errors are present.
-- Recursively check the age of all files in a directory and its sub-directories
USAGE: ./check_path_age.sh
-- PATH = Path to file or directory to check
-- WARNING_MINUTES = Age limit to issue warning alert
-- CRITICAL_MINUTES = Age limit to issue critical alert
-- oldest|newest = Check the age of either the oldest or the newest file in a directory
-- exist|noexist = Specify whether or not the path must exist
-- dig|nodig = Specify whether the script should dig down to recursively check the age of files in sub-directories.
**** Example: Monitor the age of a log file to ensure it is being written to on a regular basis.
-- Check the age of the newest file in a directory
**** Example: Monitor the age of a backup folder to ensure that nightly backups are getting created and are no older than 24 hours.
-- Check the age of the oldest file in a directory
**** Example: Monitor the age of a "queue" directory to ensure that the oldest "job" in the queue is no older than a specified limit.
-- Check the age of a non-existent file or directory
**** Example: Monitor the age of error log that only exists if errors are present.
-- Recursively check the age of all files in a directory and its sub-directories
USAGE: ./check_path_age.sh
-- PATH = Path to file or directory to check
-- WARNING_MINUTES = Age limit to issue warning alert
-- CRITICAL_MINUTES = Age limit to issue critical alert
-- oldest|newest = Check the age of either the oldest or the newest file in a directory
-- exist|noexist = Specify whether or not the path must exist
-- dig|nodig = Specify whether the script should dig down to recursively check the age of files in sub-directories.
Reviews (0)
Be the first to review this listing!