Build precise queries to find exactly what you need
Press ESC to close
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
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!