KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

FTP test Folder date

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
jdelrio



Joined: 02 Oct 2005
Posts: 13

PostPosted: Tue Jan 24, 2017 8:39 am    Post subject: FTP test Folder date Reply with quote

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
View user's profile Send private message Visit poster's website
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Tue Jan 24, 2017 9:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jdelrio



Joined: 02 Oct 2005
Posts: 13

PostPosted: Tue Jan 24, 2017 9:34 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Tue Jan 24, 2017 5:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Wed Jan 25, 2017 7:34 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Prometheus



Joined: 09 Mar 2016
Posts: 60

PostPosted: Fri Mar 31, 2017 1:39 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Fri Mar 31, 2017 3:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Prometheus



Joined: 09 Mar 2016
Posts: 60

PostPosted: Mon Apr 03, 2017 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Mon Apr 03, 2017 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Mon May 01, 2017 7:18 am    Post subject: Reply with quote

Advanced Host Monitor 10.64 supports FTP, FTPS, SFTP

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index