Trouble with Script On Server Host Monitor

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
User avatar
Gilali
Posts: 35
Joined: Fri Aug 22, 2008 4:04 am
Location: Belgium

Trouble with Script On Server Host Monitor

Post by Gilali »

Hi,

I tested, yesterday, a vb script whose detect a file presence on mapped drive in our network. I created test name.
When I tested it from RCC, I have a good reply :

Script executed
Status: Ok
Reply: File is present


When I tried to do that from server where host monitor is installed, I have this reply :

Script executed
Status: Bad
Reply: File not present


:roll: :roll: :roll:

From RCC and Server, I have access to this file with no restrictions!!!

Mapped drive is both defined.

Someone has an idea ???
User avatar
Gilali
Posts: 35
Joined: Fri Aug 22, 2008 4:04 am
Location: Belgium

Post by Gilali »

Ok, I found another way to check it.

Simply using full path adress like \\server\drive\folder\...\file.TXT and it's running good.


But I can't explain why it didn't work with mapped drive.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

But I can't explain why it didn't work with mapped drive.
Probably because HostMonitor is started as service?
a vb script whose detect a file presence on mapped drive in our network
Why do you need such script? HostMonitor offers "File/Folder Availability" test method.

Regards
Alex
User avatar
Gilali
Posts: 35
Joined: Fri Aug 22, 2008 4:04 am
Location: Belgium

Post by Gilali »

Sorry for my later response, I was in holiday :)
Probably because HostMonitor is started as service?
Yes, it's installed like service.
Why do you need such script? HostMonitor offers "File/Folder Availability" test method.
Because file name changes every day. ie : FileName_dd_MM_YY.CSV

I'll try to extract file name without date, and test it if it is present or not in folder.


Thanks again for your help.

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

Post by KS-Soft »

>Yes, it's installed like service.

Windows services do not have access to mapped drives. You should use UNC path instead.

>Because file name changes every day. ie : FileName_dd_MM_YY.CSV

So what is the problem? You may use variables in the path to the file.
Please check the manual or on-line help for more information
http://www.ks-soft.net/hostmon.eng/mfra ... htm#macros

Regards
Alex
User avatar
Gilali
Posts: 35
Joined: Fri Aug 22, 2008 4:04 am
Location: Belgium

Post by Gilali »

Thanks Alex.

With this, I can do it!

I think that I miss this part of manual :oops: (RTFM :) )

Sorry I bother you.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No problem :)

Regards
Alex
Post Reply