I've got the following problem :
When running a shell script test, sometimes it works fine and sometimes it doesn't work and it displays this error : "Error: Script returns no result" (the error appears about once over two)
The very weird thing is that when I try running the script using the "Let's try" tab in script manager (with same RMA and parameters of course), it always works (I've tried many times).
The test is executed on a Windows Server 2003 R2 SP2 64 bits by a passive RMA v3.68
HostMonitor v8.54 is running on Windows Server 2003 R2 SP2
Timeout of the test is 15s (I tried with more but it didn't work either, anyway I don't think this is the problem since the result always appears quickly).
Timeout for the active agent is 120s
Below is the test model :
Method = ShellScript
;--- Common properties ---
;DestFolder = ROOT\Infogérance\HALLMARK-BRADFORD\oracle\LMPROD\
RMAgent = HALLMARK-BRADFORD.HMKDLMORE01
Title = LMPROD detect lock radio new
Comment = 884
RelatedURL =
ScheduleMode= Regular
Schedule = infogerance
Interval = 15
Alerts = mail test
ReverseAlert= No
UnknownIsBad= Yes
WarningIsBad= No
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
;--- Test specific properties ---
Script = Scripts Oracle||Windows
Params = "C:\Program Files (x86)\RMA-Win\Scripts\LMPROD.detect_lock_radio_new.pl"
Timeout = 15
UseMacros = No
The alert profile "mail test" does nothing else than sending an email if status is Warning (which is not the case most of the time, and even if it's the case, this action works for other tests).
The shell script "Scripts Oracle||Windows" just launches an external perl script with the command (in field "Start cmd") "cmd /c perl %Params%", there is no script body. And like I said higher, it works any time when testing in script manager with same RMA and parameters.
If you want, I can provide the external script, however it is a perl script which is very specific to our application and database, and I don't think the problem comes from here since a local execution (on remote sever) always works (result is "Scriptres
I hope I was clear enough (by the way, sorry for my bad english) and I didn't forget any useful information.
Thanks for your help