Does anyone know if it's possible to monitor files their modified date stamp on an FTP server with PRTG?
Thanks
Article Comments
Thanks but that's not really what I'm looking for.
I need to monitor the file (.xml) on an FTP server it's modified date. If there is a difference of x minutes with the local (prtg) server time, it should send a notification.
think that's possible?
Another option would be reading the content of the XML file as the time stamp is included in the xml file as wel.
May, 2015 - Permalink
I would go for the first option as the second one would require downloading the fille on every sensor scan.
This can be done with a Custom Sensor that retreives the file date and retuns the time difference with the probe in minutes. Using limits you can set the sensor to a down state and trigger a notification.
May, 2015 - Permalink
Hi Antony,
I have put something together that might be what you are looking for.
PTF.FTPFileTime
This sensor reads the last modified date of a file on a FTP server and returns the age in minutes compared to the time of the Local Probe.
Parameters:
-url= The url of the file to check (e.g. -url=ftp://myserver/myfolder/myfile.xml) -u= Optional, Username for the FTP login. -p= Optional, Password or PassHash * for the FTP login. -ssl Optional switch to establish a secure connection (only Explicit-SSL is supported)
The sensor can be downloaded from http://prtgtoolsfamily.com/downloads/sensors
May, 2015 - Permalink
Thanks but not sure how to set up..
do you have any more info or should I contact prtg support?
May, 2015 - Permalink
Hi Antony,
The FTPFileTime.exe needs to be copied to the 'Custom Sensors\EXE' folder of your PRTG installation.
Next you can add a new EXE/Script sensor, select the FTPFileTime.exe and fill in the parameters as described above.
May, 2015 - Permalink
Hi Guys,
Apologies for the late reply - busy days...
I gave the FTPFileTime.exe sensor a try and it works perfectly. Thanks so much for the help! :-)
Cheers
May, 2015 - Permalink
Hi Antony,
You can setup the FTP Server File Count Sensor to count only new files
This way you can get notified if one of the files changes.
May, 2015 - Permalink