ataudte wrote:What is the Difference between the Shell Scripts in the Folder (cpu.sh, proccnt.sh, proclist.sh) and the Shell Scripts in the Script Manager. For Example there is a Script to test the CPU in the Folder and in the Manager. The Source Code is not the same.
cpu.sh, proccnt.sh, proclist.sh scripts are designed for internal purposes: cpu.sh and qnx_cpu.sh are used by "CPU usage" test method, proccnt.sh and proclist.sh are used by "Process" test method. "Script Manager" allows you to create your own custom scripts and execute them using "Shell Script" test method. Scripts, that already present in "Script Manager", are written as examples and encourage you to create your own scripts. As you can read in the manual, there are several requirements, that must be obeyed when creating a script. E.g. each script must write to stdout single result string, formatted as: ScriptRes:Status:Reply, e.g:
scriptres:Host is alive:1000 ms
scriptres:Ok:300 Kb
scriptres:Bad:90 %
Please, read the following article for details:
http://www.ks-soft.net/hostmon.eng/mfra ... hellscript
ataudte wrote:The Scripts of the Manager are saved in "Sscripts.lst" in the Folder of the HostMonitor, the *.sh-Scripts are placed in the Folder of the RMA. How and when does the RMA take action on that Scripts?
Correct. All scripts are stored in sscripts.lst file on HostMonitor's side. When you setup a "CPU usage" test method, RMA will launch cpu.sh, that located in RMA folder. When you setup a "Shell Script" test method, HostMonitor send the script body to RMA, rma perform the script and sends reply (e.g. ScriptRes:Bad:20) back to HostMonitor. I think, the thing, that all scripts are stored on HostMonitor's side, is a big goal. Let's consider situation, you have several hundreds Linux servers. You have installed RMA on all the servers and everything works fine. But what happens, when you need to write additional script or modify existing? Do you need copy new script on each server? No. You just place the new script into "Script Manager" or modify script there and everything works. Pretty convenient, don't you think?
ataudte wrote:The Background of my Question is the following:
There is a Shell Script, whose Reply is needed in the HM to send SMS or Mail. At the Moment the Script is defined in the Script Manager and the "Test by"-Value of the Test is the System with the RMA. This Script could be placed at the Remote System. How this transformation would be convented? And is there a Difference between the two Methods?
Not sure I understand your point. What two methods you are talking about? I see just one method, that allows you to perform different scripts on remote machine - "Shell Script". "Shell script" requires the script should be stored in "Script Manager". However, you may place your custom script on remote machine, and invoke this custom script from the script in "Script Manager", if you want.
Regards,
Max