We have an overnight batch process/cron job (not to be confused with DOS batch scripts), where we run a task once every 24 hours. At the end of the task it either writes a new daily file for success, or does not write a file (failure). For example, on a successful run it writes a file called 'my_process_YYYYMMDD.txt' (where YYYYMMDD is the current date). If it fails, no file is written.
How do you suggest we use PRTG to monitor that the task has run correctly?
Do you know of a different approach that would allow PRTG to monitor a batch/cron job (although it is on Windows)?
Article Comments
Thanks - after digging through the documentation a bit more I could use a Windows Task Scheduler monitor I think.
The File Sensor would also be useful. I wasn't aware we could make that run once a day.
Apr, 2014 - Permalink
I think because the filename changes you will to write a custom script to check for the file.
However it would be nice to be able to use varables in the checks, such as current date.
Apr, 2014 - Permalink
You could set up a File Sensor to run once a day and make sure the file that should be generated is there and if so not notify and if not, to go into an error state and notify you of the problem.
Apr, 2014 - Permalink