Monitoring of existence of empty file w/o extention on FTP

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
Przemo
Posts: 18
Joined: Mon Sep 26, 2005 5:09 am
Location: Poland: Warsaw

Monitoring of existence of empty file w/o extention on FTP

Post by Przemo »

Hello.
I have such problem I cannot solve:
I need to monitor presence of some files on FTP site, but the files are quite special:
- we use them as a semaphore files for interfaces between severals very different systems,
- they are empty and have no extention (i.e. DEMOK, SCALEOK)...

...and here the problem starts:

when the file is empty doing an URL test as status I get "No answer"...

Do anybody have an idea how to solve it?
I'd like to avoid using any external scripts.

I'll be very thankful for Your help.

Bye and greetings from Poland
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

About URL test problem:
I cannot reproduce such problem using our FTP server. Empty files can be correctly monitored.
May be you have added slash (/) at the end of the URL? That' why FTP server reqects request...

About UNC test problem:
You cannot use this test methdo to monitor files. Use "File/Folder Availability" test method instead. It supports UNC path as name of the file.

What version of HostMonitor do you use?

Regards
Alex
Przemo
Posts: 18
Joined: Mon Sep 26, 2005 5:09 am
Location: Poland: Warsaw

Monitoring empty files on FTP

Post by Przemo »

Hello.
KS-Soft wrote: What version of HostMonitor do you use?
My configuration:
- I use Advanced Host Monitor 5.62 Beta but I also used and tested this problem on Advanced Host Monitor 5.38 - it still persisted.
- HM is istalled on Windows XP Prof. PL (SP2).
- Monitored FTP server is on Windows 2000 Enterpise Server ENG (SP4 + Roll Out) provided by standard IIS FTP service.
KS-Soft wrote: About UNC test problem:
You cannot use this test methdo to monitor files.
Yes, You're right. I've found it out later :oops:
KS-Soft wrote: Use "File/Folder Availability" test method instead. It supports UNC path as name of the file.
I cannot use "File/Folder Availability" because the host to be monitored is outside my domain, so I have to use NT authorization and this test doesn't provide such option. :-? And mapping disk drives in Windows won't be good solution, because I'd need hundreds of such tests...
KS-Soft wrote:About URL test problem:
I cannot reproduce such problem using our FTP server. Empty files can be correctly monitored.
May be you have added slash (/) at the end of the URL? That' why FTP server reqects request...
This is quite strange:
  • - when file doesn't exist I get 'Host is Alive' status(*) :o,
    - when file exists and is not empty a get also 'Host is Alive',
    - when file exists and it's empty a get 'No answer'.
To avoid such situation (*) I put also in test:
"Check contest" -> "shouldn't contain" -> "1"
and now:
  • - when the file doesn't contain "1" in it and it's not empty I get 'Host is Alive',
    - when the file contains "1" I get 'Bad contest',
    - when the file is empty I get 'No answer'... :-?
Checking CRC works for non empty files (the CRC value is still the same), when file is empty or doen't exist CRC is different (random?) every time I tested it.

So, as You can see, URL test can see the file (so the configuration is ok) but it has problems with empty file...

I don't understand why... especially, when You wrote that on Your server You don't have such problems.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I cannot use "File/Folder Availability" because the host to be monitored is outside my domain, so I have to use NT authorization and this test doesn't provide such option.
You may provide account for NT authorization using Connection Manager
http://www.ks-soft.net/hostmon.eng/mfra ... htm#conmgr

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

Post by KS-Soft »

This is quite strange:
- when file doesn't exist I get 'Host is Alive' status(*) ,
- when file exists and is not empty a get also 'Host is Alive',
- when file exists and it's empty a get 'No answer'.
I just tested HostMonitor with 3 FTP servers: NcFTP, PureFTP and ProFTP server. No problems at all. Simple test and CRC function works fine.

So, I see 3 possible reasons of that odd behavior
1) May be some IIS bug? I will check that.
2) May be some wininet.dll bug? To check that, could you try to install HostMonitor on different system (not XP)?
Our XP systems crashed when we applied latest security patches from Microsoft. May be that's the reason...
3) May be its side effect of some 3rd party application. E.g. antivirus monitor or personal firewall? Do you have such software installed on your system? Could you try to install HostMonitor on clean system?

Regards
Alex
Przemo
Posts: 18
Joined: Mon Sep 26, 2005 5:09 am
Location: Poland: Warsaw

Post by Przemo »

HI!
For today everything seems to be fine :o ! I don't understand! I took me 2 days trying to solve it and now suddenly it's ok!
Or I am "not very smart" or there is really some bug, that accidentaly was fixed...

Really I don't understand. Windows is really a "misterius unpredictible thing"... :evil:

Thank You very much for Your time. I will draw a conclusion for the future.

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

Post by KS-Soft »

Yeah, strange.
But I am glad it works...

Regards
Alex
Post Reply