Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_file_numbers
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This has the potential to be very IO intensive so do not schedule this to run too often!
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!
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)
Be the first to review this listing!