Problem running external program

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
phreeze66
Posts: 6
Joined: Fri Nov 25, 2005 2:30 pm

Problem running external program

Post by phreeze66 »

Hi!

I´m currently evaluating HostMonitor for one single reason: I want to generate a little ascii-textfile if a test failes. For that I wrote me a little vb-script that does the job. I can run this script from windows using command-line, double-click, from Start >> Run menue, etc - no prob.

But I can´t get it doing something if I use it in an HostMonitor action (execute external program). I evan can´t get a simple batch file running. I´´ve tested on Win-XP-Pro and Win2003 Server, same same.

I´ve already searched the forum and found sth. about running HM as service or not, under different user-accounts .... notting.

Anyone out there to lend me a hand ?


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

Post by KS-Soft »

If HostMonitor cannot start some action, it records error description into system log (log file specified on Advanced Logs page in the Options dialog).
Please check the log

Regards
Alex
phreeze66
Posts: 6
Joined: Fri Nov 25, 2005 2:30 pm

Post by phreeze66 »

Hi Alex,


Ok, I have found the logs and could produce an error message. It says:

Error: cannot execute command "C:/_ergo/cmd/portal-down-create.vbs". K‹çwc‰çw

Don´t know how to interpret the "K‹çwc‰çw", but the log doesn´t tell me more about what´s really going on.
Is there an option to have a more verbose log?


Thanks and kind regards
Rolf
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

"K‹çwc‰çw"?? Nice. At this place should be error description returned by Windows (why exactly it cannot execute command).
Never heard about such problem before. What version of HostMonitor do you use?
Do you have installed some non-standard software on you system? Viruses? Antiviruses?

Regards
Alex
phreeze66
Posts: 6
Joined: Fri Nov 25, 2005 2:30 pm

Post by phreeze66 »

Hi Alex,

I use Version 5.66 on a Windows Server 2003 Standard Edition. The server has Symantec Antivirus running (think Version 9.x). Apart from that there is a lot of non-standard software running, of course, but nothing that I would expect to influence the OS that much.

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

Post by KS-Soft »

Apart from that there is a lot of non-standard software running, of course, but nothing that I would expect to influence the OS that much.
I am afraid it has such influence :(
Could you start HostMonitor on another system?
If not, we can make some modifications to display error code instead of error description, may be it will work on your system.
On the other hand, who knows what other problems can be expected on such system?

Regards
Alex
phreeze66
Posts: 6
Joined: Fri Nov 25, 2005 2:30 pm

Post by phreeze66 »

Hi Alex,

I installed it on my local workstation (WinXP-Pro, SP2) and got another error in the log:

Error: cannot execute command "c:/_ergo/cmd/create.vbs". £Û�|“#€|

Doesn´t matter if I run locally or as a service with system account


What do I have to do to see the codes instead of the text failures? Edit the ini-file somehow?

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

Post by KS-Soft »

Please use this update: www.ks-soft.net/download/hm567.zip

Regards
Alex
phreeze66
Posts: 6
Joined: Fri Nov 25, 2005 2:30 pm

Post by phreeze66 »

Hi Alex,

Installed the update on both machines (Win2003 Std. Server and WinXP-Pro, SP2). I can now read the log entries. They say (on both):

Error: cannot execute command "c:/_ergo/cmd/create.vbs". Cannot retrieve error description (error #193)

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

Post by KS-Soft »

I don't know why Windows does not return error description, you should ask Microsoft. But I know what you are doing wrong - c:/_ergo/cmd/create.vbs. VBS is not a program (EXE), its a script. You cannot start scripts like that. Use Windows Script host (cscript.exe) to process scripts. E.g. command line may look like "cmd /c cscript /B /E:VBScript c:\_ergo\cmd\create.vbs"

Regards
Alex
phreeze66
Posts: 6
Joined: Fri Nov 25, 2005 2:30 pm

Post by phreeze66 »

Hi Alex,


thanks for your support so far. Think you solved it (shame on me :x ). I played around with starting the script using cscript before I first posted my problem (there were others in the forum who used it that way). But now I played around a little more with the options for CScript.exe and finally got it working using this:

cscript //H:CScript //nologo c:/_ergo/cmd/create.vbs

at least on my local XP. Will see if it works the same on the Server 2003, but I´m pretty sure.


Thanks a lot for the great support.
Rolf
Post Reply