Problem: Agent - CMR comm.

It may occur that your agent is not able to communicate with the CMR. In this case the Agent log will output an error message like:

 

Nov 25, 2009 11:33:58 AM info.novatec.novaspy.agent.connection.impl.RMIConnection connect
INFO: RMI: Connecting to 127.0.0.1:1199
Nov 25, 2009 11:33:58 AM info.novatec.novaspy.agent.core.impl.IdManager$RegistrationThread doRegistration
SEVERE: Connection to the server failed.

 

Problem description

The communication between the CMR and the agent is done using RMI. When starting up the CMR, the CMR select the most suitable interface to connect the RMI registry to. Sometimes what the CMR regards as "most suitable" is not what you might regard as most suitable.

Solution

To get an understanding onto which IP and port the rmi registry is connected, you should inspectit the logging of the CMR and search for a line like:

 

2009-11-25 11:48:42,284 : Binding service 'NovaSpyRegistrationService' to RMI registry: RegistryImpl\[UnicastServerRef \[liveRef: \[endpoint:\[127.0.1.1:1199\](local),objID:\[0:0:0, 0\]\]\]\]

 

Here you can see that the CMR's rmi registry runs at 127.0.1.1 at port 1199, open the agent configuration file and verify that this information is provided as repository.