Solaris

checkFileAgeExec

Description:

nagios plugin to monitor for files returned from shell commands which are older than a given # of milliseconds (java source)

Current Version

Last Release Date

June 15, 2009

Compatible With


Project Files
Project Notes
nagios plugin to monitor for files returned from shell commands which are older than a given # of milliseconds Author: Sergei Haramundanis Date: 24-Apr-2007 Update: [1.1] 22-May-2007 by S. Haramundanis to report target_file_age_ms in human readable format usage: java checkFileAgeExec command_filename target_file_age_ms check_from_time check_to_time Description: This plugin will scan files returned from commands contained in the command file specified to determine if any of the files have not been modified for longer than the specified target file age in milliseconds Lines beginning with # or blank lines in the command file are ignored. Example commands: Unix: find /clareonProd/sched -name 'encrypted*' find /clareonProd/sched -name 'non-encrypted*' Windows: C:cygwinbinfind . -name 'encrypted*' C:cygwinbinfind . -name 'non-encrypted*' Output: During any run of the plugin, if it finds any files older than the specified number of milliseconds it will return a WARNING state with the last file found prefixed by the number of files that were found to be older as in the following example: [WARNING] [5] "/ftp/inbound/filename.pdf" is older than 1800000 ms in this case the [5] indicates that it found five files older than 30 minutes (1800000 ms) and filename.pdf is the last one it found if no files are found to be older in the directory list it will return an OK state with the message: [OK] no files found older than ms If the current time falls outside the specified check_from_time and check_to_time it will return on OK state with the message: [OK] current time outside of monitoring timeframe 1600 and 1800
Reviews (0) Add a Review
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
0 (0)
Favorites
0
Views
148,280