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
Script returns no results
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
Alex
Scripts should be designed in slightly different manner.
Quotes from the manual:
Active Script
Shell ScriptRequirements 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:
....
RegardsThe 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 (:).
....
Alex
-
- Posts: 9
- Joined: Mon Dec 27, 2004 2:55 pm