Issue with Shell Script

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Gavin
Posts: 58
Joined: Thu Sep 24, 2009 8:44 am

Issue with Shell Script

Post by Gavin »

I am having major problems getting a VBscript working in RCC. I was originally using Active Script but that didn't seem to support Wscript so I migrated to Shell Script.

Now the script works fine when run directly from the server but it won't run through RCC which is annoying. When I run it I get "Error: Script Returns No Results" which is expected as I don't actually want results I just want it to run the script, but it doesn't.

Here is how it is setup.

Image

Any ideas?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

RCC does not perform tests at all. RCC is just remote interface for HostMontior, all tests, scripts and actions performed by HostMonitor or by Remote Monitoring Agent. (However in some cases RCC can execute code, when you test some functions using "Test" button....)
Now the script works fine when run directly from the server but it won't run through RCC which is annoying.
Could you please explain what exactly means "directly from the server"?
As I see you are using some agent for this test. This means script is not executed by RCC or HostMonitor. Script is executed by Remote Monitoring Agent (RMA).
What agent do you use? Active RMA? Passive RMA? What version of the agent do you use? Windows? Service Pack?
May I see your script?
When I run it I get "Error: Script Returns No Results" which is expected as I don't actually want results I just want it to run the script, but it doesn't
Any test including Shell Script test should provide test results to HostMonitor. Otherwise it does not have any sense.

Regards
Alex
Gavin
Posts: 58
Joined: Thu Sep 24, 2009 8:44 am

Post by Gavin »

Hello Alex,

The entire hostmonitor package is collectively known as RCC in our office thus the confusion there!

Yes, I am referring to the RMA. When I say "Directly from the server" I mean if I have my script as a VBS file on the desktop and run it, it works.

We have Passive RMA setup, basically we run tests on a schedule from our RCC and get back the results the servers the RMA don't actively send anything. The RMA in this instance is on a W2K3 Small Business Server with the latest service pack.

I can assure you it does make sense! We have a significant amount of companies that we support (All on seperate LANs) and I need to run a VBScript on all of them from a central location which is what I am using RCC for. In this instance I can't provide a copy of the script as there is confidential information in there, however lets say that the script creates a folder for instance and populates a text file with some data. The script that I have written works fine when I launch myscript.vbs from the desktop, I just want to run that remotely through RCC because I will be eventually running the script against over about a 100 agents and I don't fancy doing each one manually!

I will eventually want some data returning back from the RMA but at the moment I just want a script to launch!

Any help you could provide would be appreciated.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If you want to create test item using Shell Script test method, then your script should follow our rules and it should return specific result.
Please check the manual or visit our web site for more information
http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell
http://www.ks-soft.net/hostmon.eng/mfra ... m#shellres

If you want to execute some script and you do not care about HostMonitor/RMA rules, use "Execute external program" action instead
http://www.ks-soft.net/hostmon.eng/mfra ... htm#actPrg

Regards
Alex
Post Reply