|
View previous topic :: View next topic |
Author |
Message |
peter_fleur
Joined: 27 Dec 2004 Posts: 9
|
Posted: Mon Dec 27, 2004 3:00 pm Post subject: Script returns no results |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Dec 27, 2004 3:20 pm Post subject: |
|
|
Looks like you mixed scripts. HostMonitor support 2 script test methods: Active Script (http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#script) and Shell Script (http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#chkShell).
Scripts should be designed in slightly different manner.
Quotes from the manual:
Active Script Quote: | 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 Quote: | 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 |
|
Back to top |
|
|
peter_fleur
Joined: 27 Dec 2004 Posts: 9
|
Posted: Mon Dec 27, 2004 4:40 pm Post subject: |
|
|
OOOPSS RTFM. Sorry... This works... Thanks for the quick reply! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|