Shell Script, doesn't return a Result

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
olaf
Posts: 3
Joined: Thu Jun 21, 2007 2:59 am

Shell Script, doesn't return a Result

Post by olaf »

Hi,

I'm trying to test something with the shellscript test, but i'm unable to get any output.

I want a vbscript run (not Active Script, cause the WScript object is not available, and the freedom of parameters), when ran form the commandline the script returns
scriptRes:Ok:0 or scriptRes:Bad:n. I tried different Case usings in scriptRes (from scriptres to ScriptRes). Finally I tried a simple bat script to run which only contains:

Code: Select all

@echo on
echo scriptRes:Ok:1
But I’m always receiving:
[11:13:27] HostMonitor is going to execute "bat" script ...
[11:13:27] Script started, no results received


The VbScript is outputting like this:

WScript.StdOut.Write and also tried WScript.Echo

I also tried to use the samples but again not getting an result.

I’m Running on Windows 2003 SP1
Hostmonitor is Version: 6.80

I also checked if it could some parameter in the

default for VB:

cmd /c cscript /B /E:VBScript %Script% %Params%
cmd /c /Q cscript /E:VBScript %Script% %Params%
cmd /c cscript /NoBanner /E:VBScript %Script% %Params%

and for bat

cmd /c %Script% %Params%

All cmd's work from the command line, but can't get an response in HostMonitor

What am I doing wrong?

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

Post by KS-Soft Europe »

You have to specify ""%Script% %Params%" or "cmd /c %Script% %Params%" into "Start cmd" box of the "Script Manager" to perform following script:

Code: Select all

@echo on 
echo scriptRes:Ok:1
If it does not work, please verify if account, that is used to start HostMonitor has necessary rights to start "cmd" command. Is HostMonitor started as a service or as an application?

Regards,
Max
olaf
Posts: 3
Joined: Thu Jun 21, 2007 2:59 am

Post by olaf »

Hi Max,

Thank you for the quick reply

I tried both "%Script% %Params%" and "cmd /c %Script% %Params%"
For the test bat.

Currently HostMonitor is running as application, cause i'm building all the tests, but when done it's going to run as service.

The account started the HostMonitor executable, is member of the Local Administrators group.

Could i check something else?

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

Post by KS-Soft Europe »

olaf wrote:Could i check something else?
Could you export that particular script into text file (using "Export" button in the "Script Manager") and send it to support@ks-soft.net ?

Could you provide RemoteDesktop, RAdmin or VNC acces to your system? If yes, please send necesary information to support@ks-soft.net

Regards,
Max
olaf
Posts: 3
Joined: Thu Jun 21, 2007 2:59 am

Post by olaf »

The info is in your mailbox, if you didn't receive anything, plz. let me know.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Final report: Heavy loaded system was out of resources. HostMonitor was moved to another system and everything works fine now
Post Reply