Active script sometime hang
Active script sometime hang
I was try to use Active script to check the server. The vbscitpt is always work if manual run "cscript checkserver.vbs" command in DOS. But use active script run, sometime it will open the DOS and hang.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
I think, your script does not met requirements, so you should adjust it a bit:
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:
* "Host is alive"
* "No answer"
* "Unknown"
* "Unknown host"
* "Ok"
* "Bad"
* "Bad contents"
Second optional part contains "Reply" value, HostMonitor displays this value in Reply field, writes to log files, uses to displays charts (Log Analyzer), etc.
Please, read the following article for details: http://www.ks-soft.net/hostmon.eng/mfra ... htm#script
Also you may use examples, located in \Examples\Scripts subfolder of HostMonitor folder.
Alternative solution is to use "Shell Script" test method. But in any case, script should suit requirements: http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell
Regards,
Max
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:
* "Host is alive"
* "No answer"
* "Unknown"
* "Unknown host"
* "Ok"
* "Bad"
* "Bad contents"
Second optional part contains "Reply" value, HostMonitor displays this value in Reply field, writes to log files, uses to displays charts (Log Analyzer), etc.
Please, read the following article for details: http://www.ks-soft.net/hostmon.eng/mfra ... htm#script
Also you may use examples, located in \Examples\Scripts subfolder of HostMonitor folder.
Alternative solution is to use "Shell Script" test method. But in any case, script should suit requirements: http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell
Regards,
Max