KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Script returns no results

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
peter_fleur



Joined: 27 Dec 2004
Posts: 9

PostPosted: Mon Dec 27, 2004 3:00 pm    Post subject: Script returns no results Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Dec 27, 2004 3:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
peter_fleur



Joined: 27 Dec 2004
Posts: 9

PostPosted: Mon Dec 27, 2004 4:40 pm    Post subject: Reply with quote

OOOPSS RTFM. Sorry... This works... Thanks for the quick reply!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index