File System

check remote files age in minutes

Description:

checks a directory on a remote system (via rsh or ssh) and returns a warning if a specified amount of files is found which is older than x minutes.

Current Version

Last Release Date

June 22, 2009

Compatible With


Project Files
Project Notes
checks a directory on a remote system (via rsh or ssh) and returns a warning if a specified amount of files is found which is older than x minutes. We are using the find command with the option "-mmin" to select the correct files in a directory. The results are piped to the command "wc -l" to determine the amount of files found. The result is interpreted as a nagios status OK, WARNING or CRITICAL. Tested on Solaris 5.8 with the appropriate "find" packages from www.sunfreeware.com and tested on Linux. That's all folks
Reviews (3) Add a Review
find mmin
by najmarte, September 30, 2016

0



Hyphen is missing in formation of CMD in mmin parameter
by ashish.chandra, June 30, 2013

In formation of command a hyphen is missing ; that causes the cmd to always return zero . in mmin we need to provide (-) to ruun the command properly. Expected :$CMD = "/bin/find " . $pattern . " -type f -mmin " . -$mmin . " 2>/dev/null| /usr/bin/wc -l"; Otherwise the plugin is excellent and runs great.



Exactly what I needed
by Mageru, September 30, 2011

I had to change the path for find in the plugin to adapt for my Red Hat servers but the plugin is most excellent!



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
5 (3)
Favorites
2
Views
108,426