FTP test Folder date

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
jdelrio
Posts: 13
Joined: Sun Oct 02, 2005 5:21 pm
Contact:

FTP test Folder date

Post by jdelrio »

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?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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.
jdelrio
Posts: 13
Joined: Sun Oct 02, 2005 5:21 pm
Contact:

Post by jdelrio »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
Prometheus
Posts: 60
Joined: Wed Mar 09, 2016 1:23 am

Post by Prometheus »

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?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
Prometheus
Posts: 60
Joined: Wed Mar 09, 2016 1:23 am

Post by Prometheus »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Advanced Host Monitor 10.64 supports FTP, FTPS, SFTP

Regards
Alex
Post Reply