FTP check

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
xister
Posts: 2
Joined: Wed Feb 20, 2008 4:17 am

FTP check

Post by xister »

Hello,

i need your help for the following process.

if a specific file exists (name + data), then mail to...
if not, than do nothing

The last is no problem, but the first task didn´t run :lol:

i hope you can help me.

greetz
xister
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Not sure where is a problem. You may use "URL" test method to check certain file exists. Quote from the manual: http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#url
====================================
HostMonitor can perform a URL (Universal Resource Locator) check based on the HTTP (web), HTTPS (secure web), FTP or Gopher protocols.
====================================

So, you just should create a "URL" test and specify link to file into "URL" input box in "Test Properties" window (e.g: ftp://ftp.some_server.com/pub/some_file.txt).

After that, you should create an alertprofile, place "Send Email" action into "Good status action" area and assign this alert profile to the test.
http://www.ks-soft.net/hostmon.eng/mfra ... m#profiles

Regards,
Max
xister
Posts: 2
Joined: Wed Feb 20, 2008 4:17 am

Post by xister »

thanks, the first test is running.

but the second not.
on this ftp the filename differs every day.

can i search on the ftp for something like *.txt or Export*.txt?
The * is a placeholder.

I hope someone can help me.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, you cannot use wildcards (*). However you may use date&time variables.
Quote from the manual
Translate date macro variables
This option allows you to use date & time variables in the URL. It is useful when you have to monitor web pages that are created on regular basis. E.g. such URL may look like " http://www.sql.company.com/logs/%mm%-%dd%-%yyyy%.html".

To represent a date or time you may use the following variables:
%d% - Current day as a number without a leading zero (1-31).
%dd% - Current day as a number with a leading zero (01-31).
%ddd% - Current day as an abbreviation (Sun-Sat). HostMonitor uses system's regional settings for abbreviation format.
%jjj% - The day of the year as a three digit decimal number in the range of 001 to 366
%ww% - Current week as two-digit number (01-54).
%m% - Current month as a number without a leading zero (1-12).
%mm% - Current month as a number with a leading zero (01-12).
%mmm% - Current month as an abbreviation (Jan-Dec) using system's regional settings.
%yy% - Current year as a two-digit number (00-99).
%yyyy% - Current year as a four-digit number (0000-9999).
%h% - Current hour without a leading zero (0-23).
%hh% - Current hour with a leading zero (00-23).
%n% - Current minute without a leading zero (0-59).
%nn% - Current minute with a leading zero (00-59).
Regards
Alex
Post Reply