Hi all,
I have a Windows Scheduled Task that runs a report on a Sybase DB, and outputs the results to 3 files on a mapped Samba share on a Unix server.
I want to be able to monitor the last modified date of each of the 3 files and graph this in PRTG. This will allow me to historically map the run time of each report.
I tried to use something like the below as a custom ssh script:
- !/bin/bash
stat=`stat -c %Z /opt/cbis/bo_cbis_home/work/banking/export/cash_rec_reports_net.log`
echo 0:$stat:working
But PRTG stated that the output was not well formed.
Is there anyway that I can do this?
Thanks in advance
Andrew
p.s. Im still pretty new to PRTG so if i've missed something simple, go easy on me!
Add comment