View previous topic :: View next topic |
Author |
Message |
jdelrio
Joined: 02 Oct 2005 Posts: 13
|
Posted: Tue Jan 24, 2017 8:39 am Post subject: FTP test Folder date |
|
|
Hi,
I get files from a folder in a trading partner's FTP server.
I need to check the modified date folder to determine how long time they did not left any file.
How can I test it? |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Tue Jan 24, 2017 9:11 am Post subject: |
|
|
As I understand you correctly, you need to monitor if any file in FTP folder has been modified/added/removed?
You may try the following:
1. Setup URL request test with settings like the following:
Service: FTP
Server: <you ftp server>
Port: 21
Path/File: www/data/actual/
Advanced -> FTP: Passive mode
2. Password protected page: specify ftp login/password
3. Enable "Check CRC" option and press "Get CRC" button
4. Enable "Recalculate CRC when page content changes detected"
Whis these settings you may monitor FTP folder changes.
Please note, this scenario may not work on all FTP servers. |
|
Back to top |
|
|
jdelrio
Joined: 02 Oct 2005 Posts: 13
|
Posted: Tue Jan 24, 2017 9:34 am Post subject: |
|
|
thanks for the quick response, but I trying to check when the FTP folder has been modified, in other words, which is the modified date of the folder |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Tue Jan 24, 2017 5:29 pm Post subject: |
|
|
There is no built-in option.
Theoretically you can use Shell Script or External test method and some script that will check timestamp and find newest file in the folder...
Regards
Alex |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Wed Jan 25, 2017 7:34 am Post subject: |
|
|
PS
it looks like you need to make separate FTP request for each file located in the folder, not a nice solution.
May be you can access server using some other way, e.g. install RMA (Remote Monitoring Agent)?
Regards
Alex |
|
Back to top |
|
|
Prometheus
Joined: 09 Mar 2016 Posts: 60
|
Posted: Fri Mar 31, 2017 1:39 am Post subject: |
|
|
Hi,
I kinda need to do the same check, but i need to do it on a SFTP and FTPS environment but HostMonitor doesnt seem to like this at all. Is there a way we can monitor this SFTP and FTPS environment? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Fri Mar 31, 2017 3:58 pm Post subject: |
|
|
Not at the moment.
May be we can add some command line utility for External or ShellScript test..
What exactly do you need to check? folder/file modification date?
Note: system changes folder timestamp when new file added or some file removed; system does not change parent folder timestamp when existing file modified.
If you need to scan all files, its better to install agent...
Regards
Alex |
|
Back to top |
|
|
Prometheus
Joined: 09 Mar 2016 Posts: 60
|
Posted: Mon Apr 03, 2017 12:50 am Post subject: |
|
|
Hi Alex,
What I need is to be able to make an SFTP and FTPS connection and just do an LS command. So we can test if our FTP site is available to our customers. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Mon Apr 03, 2017 5:03 am Post subject: |
|
|
I think we will implement File Availability test for FTP and FTPS protocol in version 10.62 (probably in April).
and may be SFTP as well..
Regards
Alex |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12806 Location: USA
|
Posted: Mon May 01, 2017 7:18 am Post subject: |
|
|
Advanced Host Monitor 10.64 supports FTP, FTPS, SFTP
Regards
Alex |
|
Back to top |
|
|
|