Complex FTP file test

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
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Complex FTP file test

Post by jromariz »

Hi All,

I need to setup a test that will check if a certain file is available in an FTP server. The problem is that the file name is kind of complex. It is made by some static and some dinamic parts. Example:

A4104032200.gz

Where:

- "A41" is a static part
- "040322" - is yesterday´s date (04 is the year, 03 the month and 22 the day)
- "00" is a static part

The problem is: how can i configure a macro variable to reflect the variable part of the file name?

Any help would be great.

Regards,

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

Post by KS-Soft »

What test method do you use?
URL test? In this case you cannot use macro variables
File Availability test? In this case type A41%yymmdd[-1d]%00.gz as file name.

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

BTW: you need to have HostMonitor version 4.40 to use this expression.
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Alex,

I´m trying to check file using file availability but it´s not working. Is there any "secret" on the file or folder name format field for ftp file checking?

Thanks for your help.

Regards,

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

Post by KS-Soft »

FTP file checking?
File Availability test doesn't support FTP protocol. It works with local or shared files.

Regards
Alex
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

Hi Alex,


So there´s no way to check if a file exists using FTP protocol?


Regards,


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

Post by KS-Soft »

URL test supports FTP protocol. But it does not support macro variables. Yet.

Regards
Alex
Post Reply