2 Replies Latest reply on Mar 18, 2010 1:27 PM by Patrick Conway

    RHQ 3.0.0.B03

    Patrick Conway Newbie

      I have installed RHQ 3.0.0.B03

       

       

      I am using it to monitor local machines and remote machines which are behind a firewall...

       

      The problem is I connect to the remote machines using ssh tunnell

       

      The agent connects ok and then tries to download the plugins...but it is trying to connect to the rhq server based on its (actual) ip address rather than the hostname

       

      It cannot access the actual ip address because of a firewall, but it can access port 7080 by hostname through the tunnell and connect that way.

       

      How do I set the servlet url to hostname instead of ip address or stop it failing over to the ip address

       

      See log excerpt below....agent successfully connects on hostname,

       

      but then fails over to the ip address

       

       

      2010-03-18 12:53:14,448 INFO  [RHQ Agent Registration Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.agent-registration-results}Agent has successfully registered with the server. The results are: [AgentRegistrationResults: [agent-token=1268916794096-1112192961-6596614643474280293]]

      2010-03-18 12:53:14,497 INFO  [RHQ Agent Registration Thread] (enterprise.communications.command.client.JBossRemotingRemoteCommunicator)- {JBossRemotingRemoteCommunicator.changing-endpoint}Communicator is changing endpoint from [InvokerLocator [servlet://rhqserver.local:7080/jboss-remoting-servlet-invoker/ServerInvokerServlet]] to [InvokerLocator [servlet://192.168.x.x:7080/jboss-remoting-servlet-invoker/ServerInvokerServlet]]

      2010-03-18 12:53:14,499 WARN  [RHQ Agent Registration Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.failover-failed}Failed to failover to another server. Cause: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Connection refused.

      2010-03-18 12:53:14,519 INFO  [ClientCommandSenderTask Timer Thread #0] (enterprise.communications.command.client.JBossRemotingRemoteCommunicator)- {JBossRemotingRemoteCommunicator.changing-endpoint}Communicator is changing endpoint from [InvokerLocator [servlet://192.168.x.x:7080/jboss-remoting-servlet-invoker/ServerInvokerServlet]] to [InvokerLocator [servlet://192.168.x.x:7080/jboss-remoting-servlet-invoker/ServerInvokerServlet]]

      2010-03-18 12:53:14,521 WARN  [ClientCommandSenderTask Timer Thread #0] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.failover-failed}Failed to failover to another server. Cause: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Connection refused.

      2010-03-18 12:53:14,522 WARN  [ClientCommandSenderTask Timer Thread #0] (org.rhq.enterprise.agent.FailoverFailureCallback)- {AgentMain.too-many-failover-attempts}Too many failover attempts have been made [1]. Exception that triggered the failover: [org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Connection refused.]

      2010-03-18 12:53:14,523 ERROR [ClientCommandSenderTask Timer Thread #0] (enterprise.communications.command.client.JBossRemotingRemoteCommunicator)- {JBossRemotingRemoteCommunicator.init-callback-failed}The initialize callback has failed. It will be tried again. Cause: org.jboss.remoting.CannotConnectException:Can not connect http client invoker. Connection refused. -> java.net.ConnectException:Connection refused. Cause: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Connection refused.

      2010-03-18 12:53:14,524 WARN  [RHQ Server Polling Thread] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.plugin-update-failure}Failed to update the plugins.. Cause: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. Connection refused.