Script returns no results

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
peter_fleur
Posts: 9
Joined: Mon Dec 27, 2004 2:55 pm

Script returns no results

Post by peter_fleur »

I have a problem with running script on my local machine.
I start the Hostmonitor on my local machine with an administrative account.
If i add the drivelist test example i even got the error.
I use the cmd /c cscript /B /E:VBScript %Script% %Params%
code and paste the code from the example dir.
Every time i get the same error: Script returns no results
While if i run the script in dos everything works fine.
Can somebody help me further?

Thanks,

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

Post by KS-Soft »

Looks like you mixed scripts. HostMonitor support 2 script test methods: Active Script (http://www.ks-soft.net/hostmon.eng/mfra ... htm#script) and Shell Script (http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell).
Scripts should be designed in slightly different manner.

Quotes from the manual:
Active Script
Requirements to the script:
HostMonitor has just a few requirements: 1. script must contain "performtest" function. HM always call function with this name
2. "performtest" function must not have any parameters
3. "performtest" function must return string value. This string contains two parts separated by colon (:). First obligatory part contains test status, it can take following values:
....
Shell Script
The following rules must be obeyed when creating a script:

The script or external program must write to stdout (standard output stream) single result string. This string should contain 3 parts separated by colon (:).
....
Regards
Alex
peter_fleur
Posts: 9
Joined: Mon Dec 27, 2004 2:55 pm

Post by peter_fleur »

OOOPSS RTFM. Sorry... This works... Thanks for the quick reply!
Post Reply