Testing RMA Agents

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
jcasares
Posts: 50
Joined: Tue Sep 16, 2008 9:33 am

Testing RMA Agents

Post by jcasares »

We normally tested RMA Agent with a simple TCP test on the RMA port, but yesterday we had an issue where the port replied, but the agent was not working because of an Antivirus deployed on the device.

Is there a secure way to check an RMA Agent is working? Much like the HM Monitor test, but for agents.
KS-Soft
Posts: 12846
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

https://www.ks-soft.net/hostmon.eng/rma-win/index.htm

How to check status of the agent

When you use single agent to perform various tests, you may want to setup Master test to check agent status. In such case HostMonitor may send single alert informing you about disconnected agent and hold dependant test items (so you will receive single alert instead of hundred warnings for all tests performed by this agent).
What test can you use as Master test?

- Passive RMA: It's pretty easy to check Passive RMA status when you do not use Backup RMA. You may use TCP test to check is RMA receives connections on specified TCP port or use Ping test performed by the agent to check localhost (127.0.0.1). Such Ping test will always return "Host is alive" status when successfully authenticated connection to the agent can be established.
If there is backup agent in use, you may setup Ping test performed by Passive RMA using rma itself string as target host name. In such case HostMonitor will check agent status without using backup agent even if such backup agent was specified for selected RMA

- Active RMA: Things a little more tricky when you need to check Active RMA status. Yes, you may setup the same "Ping localhost" test to check agent status. However this may lead to some delay in reaction as HostMonitor will not perform test if agent was connected but lost connection just a moment ago. HostMonitor may wait up to several minutes for new connection before changing test status to "Unknown". Dependant test items will be delayed as well so such delay is not a big problem, you will not receive a lot of alerts. However if for some reason you need to receive alert immediately, there is solution: setup Ping test using Active RMA and type rma itself string instead of localhost or target host name. In such case HostMonitor will display agent status immediately. HostMonitor will not use backup agent (if any) when specified agent is not connected; also HostMonitor will not wait for agent re-connection.

Regards
Alex
jcasares
Posts: 50
Joined: Tue Sep 16, 2008 9:33 am

Post by jcasares »

Thank you! Testing local ping seems a good one.
jcasares
Posts: 50
Joined: Tue Sep 16, 2008 9:33 am

Post by jcasares »

I'm afraid it's not working.

OS: Ubutu 18
RMA Agent: 1.36 for Linux
Agent mode: passive

The ping test to 127.0.0.1 or localhost returns with: "RMA: 500 - not implemented yet"

Ping is enabled in the ini file for the agent.

And remember that the TCP test was not conclusive as something in the server returned the connection (BitDefender) but not the RMA Agent so the other tests depending on this one gave error.
KS-Soft
Posts: 12846
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, this version of the agent does not support ping test so you may use ANY other test method performed by agent, just make sure test always return the same status, e.g. use File/Folder Availability test and check / or /bin or /bin/sh or any other standard file.

Actually you may use Ping test as well. Just set the following option in Test Properties dialog:
[x] Use Normal status if ("not implemented yet" in "%SuggestedReply%")

Regards
Alex
Post Reply