Check Latest File Age
Posted: Fri Apr 04, 2014 5:48 am
Hi,
Anyone know of a plugin that will read in the latest file in a directory and check its last modified age?
I see plugins that report on file age on a bunch of files in a directory or a specific file name but not what I'm after.
The file i want to monitor is created at the start of the day with a name of today's date, e.g. 20140404-01.txt. The directory also contains all previous days files.
I want to know if it hasn't been updated in the last 30 minutes and be checked every 2 minutes.
I've tried the NSClient checkfiles but this reports on all the files in the directory not being updated in the last 30 minutes (which is a lot!).
Also, this has to be Windows friendly.
Any ideas would be great!
Cheers
Anyone know of a plugin that will read in the latest file in a directory and check its last modified age?
I see plugins that report on file age on a bunch of files in a directory or a specific file name but not what I'm after.
The file i want to monitor is created at the start of the day with a name of today's date, e.g. 20140404-01.txt. The directory also contains all previous days files.
I want to know if it hasn't been updated in the last 30 minutes and be checked every 2 minutes.
I've tried the NSClient checkfiles but this reports on all the files in the directory not being updated in the last 30 minutes (which is a lot!).
Also, this has to be Windows friendly.
Any ideas would be great!
Cheers