Reporting

check_file_numbers

Description:

This will total up fles on specific directory paths that match a certain wildcard pattern e.g. how many pdf files are in a particular area. Can be used as a test that various housekeeping functions are not letting e.g. log files build up.

This has the potential to be very IO intensive so do not schedule this to run too often!

Current Version

0.2

Last Release Date

2012-05-16

Compatible With

  • Nagios 3.x
  • Nagios XI

License

GPL


Project Files
Project Notes
Nagios plugin to check numbers of a file matching a pattern Either works by applying the supplied file globs directly - in which case the glob could be anchored as an absolute path e.g. /tmp/*.xml Or if the optional -b for basedir is given we do a File::Find tree walk from that base and for each sub directory the specified file globs are applied. In this case it is an error for any of the globs to be an absolute path. This has to be checked for in a portable way so that the code will work for Windows as well as Unix - the way we choose to do this is to insist that the glob cannot have any directory name component - i.e. that it must equal its own basename. Beware that this plugin has the potential to be expensive on disk IO so take care with how regularly it is scheduled!
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
8,339