Home Directory Plugins Operating Systems Linux Check Newest files age and size in Diredtory

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 Newest files age and size in Diredtory

Current Version
1.0
Last Release Date
2011-08-03
Compatible With
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
158156
Files:
FileDescription
check_fileagecheck_fileage
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!
This plug-in is for LINUX edition and determines the newest file in the folder specified and it's age and size.
This plug-in is for LINUX edition and determines the newest file in the folder specified and it's age and size. It can also be use on any Unix/Linux platform. You need basic Perl package to run this plug-in.

Usage: check_fileage [-w ] [-c ] [-W ] [-C ] -f

If anyone face any difficulty to use this plug-in then feel free to write me.
Reviews (1)
The script doesn't properly determine which file is the newest one. The IF statement on line 113 is incorrect.

Also the name "check_fileage" is confusing, it's too similar to the natively provided "check_file_age" plugin.

My suggestion is:

1) Rename the script to "check_newestfileage", and so a search/replace inside the plugin to change all instances of "check_fileage" to "check_newestfileage".

2) Remove the "else" clause on the IF statement on Line 111, so change this:

if($diff