Search Exchange
Search All Sites
Login
check_MostRecentFile
Current Version
1.0
Last Release Date
2010-11-17
Compatible With
- Nagios 3.x
Owner
Hits
83473
Files:
| File | Description |
|---|---|
| check_MostRecentFile.vbs | check_MostRecentFile.vbs |
It's useful for monitoring incremental log files with names that change with the dates.
Output values: 0=OK, 1=Warning, 2=critical, 3=unknown
This script can be useful for monitoring application log file names that change with the date. For example, I often want to check if a process is still generating a log file (and that the file is not empty).
Intended for use with Nagios check_nrpe / nsclient++.
It accepts four arguments:
- directory path
- warning age (in minutes)
- critical age (in minutes)
- minimum file size (in bytes)
sample command line execution:
cscript check_MostRecentFile.vbs c:testdir 1440 2880 10
NOTE: Files with the "hidden" attribute are intentionally excluded by the script, but this can be easily changed if needed.
This script can be useful for monitoring application log file names that change with the date. For example, I often want to check if a process is still generating a log file (and that the file is not empty).
Intended for use with Nagios check_nrpe / nsclient++.
It accepts four arguments:
- directory path
- warning age (in minutes)
- critical age (in minutes)
- minimum file size (in bytes)
sample command line execution:
cscript check_MostRecentFile.vbs c:testdir 1440 2880 10
NOTE: Files with the "hidden" attribute are intentionally excluded by the script, but this can be easily changed if needed.
Reviews (0)
Be the first to review this listing!


New Listings


