Home Directory

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

Directory

grdnkln

Reviews(1)
bygrdnkln, July 6, 2013
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