Check file avaiable

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
Charlers Duong
Posts: 2
Joined: Fri May 17, 2024 10:21 am

Check file avaiable

Post by Charlers Duong »

Hi KS,

i want to check file modification time, I try method test: folder availability but does not work. Can you please check ?

I need to check name file: test123 with FTP so test command
ftp://hungpro@10.0.237.121:21/test123
- with alert when file exists older than 10 minutes

Thanks a lot.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HostMonitor version?
What exactly means "does not work"? What is test status? Reply value?
Does file exist? File timestamp?

Often FTP is not a reliable way to check file timestamp. Quote from the manual
FTP/FTPS related notes:
Unfortunately standard FTP protocol does not specify date format and does not provide a method for determining the server time zone. If you set File/Availability test to check file modification time, it can be hard to get correct time stamp of the file.
E.g.
- FTP servers that use UNIX directory structure do not include year information for files modified within the last 12 months. In such case HostMonitor appends current or last year to the file date (depending on file modification day and time). When HostMonitor system and the FTP server are in different time zones, the years may not match between December 31 and January 1; also year can be set incorrectly when the file is 1 year old (+- several hours)
- other FTP servers may provide date like 01/02/2016. Is it January 02 (USA) or February 01 (France)? In this case you may specify date format after file name, e.g. ftps://user1@ftp.big.com:990/%newestfolder% [DMY]
Regards
Alex
Charlers Duong
Posts: 2
Joined: Fri May 17, 2024 10:21 am

Post by Charlers Duong »

HI KS,

I use version 10.7 and test status OK, Reply: Empty, File exist.
I have a case: I want to check folder test123 through FTP and folllow modication time in one day.

So I want to check folder: ftp://hungpro@10.0.237.121:21/%test123% [MDY]
Is that right ? but I try test alert when file exist older than 3 minutes, it dosn't work. test status always OK.

Can you help me ?

I can't insert image
[/img]
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

10.70 is very old not supported version. I assume your support term expired many years ago?
Latest version 14.54, there are thousands changes and improvements.
I need to check name file: test123 with FTP so test command
So I want to check folder: ftp://hungpro@10.0.237.121:21/%test123% [MDY]
I am confused. Do you need to check file or folder? File name (or folder name) is test123 or %test123%?
Or may be you want to check all files located in test123 folder and find newest or oldest file there?
but I try test alert when file exist older than 3 minutes, it dosn't work. test status always OK
I would suggest to check time zone on HostMonitor system and FTP system.
Check date format used by FTP server.
You may use Windows FTP client (ftp.exe) to check what exactly data returned by FTP server.

Regards
Alex
Post Reply