Hi,
So I'm looking for some help for setting up a custom Windows Script Monitor to help us find 0 kb files in a directory that are over 20 minutes old. We have an application that creates files based upon data from another application, but sometimes this application fails, leaving a bunch of 0 kb files lying around. I'd like to create an APM that looks for these and triggers an alert if there are 0 kb file over 20 minutes old, but not sure where to begin.
I tried using the built in File Size Monitor, but there are two issues:
1.) No way to specify how old the file must be before triggering.
2.) does not accept the *.* wildcard. The file names are randomly generated so I don't know what they are.
So that leaves a Windows Script Monitor. If anyone has a script they would like to share or some advice, please let me know! Thanks