How to run external scripts likle bat or vbs

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
Thore
Posts: 23
Joined: Thu Nov 26, 2009 7:08 am

How to run external scripts likle bat or vbs

Post by Thore »

Hi all

I'm new with HostMon
Is it possible to run external scripts if a test got failed. I have several scripts which I want to run e.g. when drive C: is getting full at script should run and delete *.log older 5 days from a specific folder.
Thanks for any comments

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

Post by KS-Soft »

HostMonitor offers 30 action methods
http://www.ks-soft.net/hostmon.eng/index-actions.htm

There is "Execute external program" action that allows you to start external applications
http://www.ks-soft.net/hostmon.eng/mfra ... htm#actPrg
E.g. cmd /c c:\scripts\deletelogfiles.bat

Regards
Alex
Thore
Posts: 23
Joined: Thu Nov 26, 2009 7:08 am

Post by Thore »

Hi Alexs

It's still not possible for me to run external scripts. I did it exactly the way you explained. but it seems that still something is wrong. I can only run the script manually to get it done. For me it looks like that HostMon dosn't get the trigger to start the script or HM can find the srcipt in the path I specified or there is a special command needed.
Is there a log file within HM where I can see such kind of problemsß
Thanks for any comments

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

Post by KS-Soft »

The following article explains what logs and setting you should check
http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=4804

May I see your command line used for the action? There is common mistake - many customers try to start BAT files without using command processor (cmd.exe).

Regards
Alex
Thore
Posts: 23
Joined: Thu Nov 26, 2009 7:08 am

Post by Thore »

I think I found the error. I found some usefull info here:
http://www.ks-soft.net/cgi-bin/phpBB/vi ... ld&start=0
Thanks so far Alex

Regards
Thorre
Post Reply