2 Replies Latest reply on Jul 7, 2015 10:59 AM by nicolas.santisteban

    How to install the agent in a server wich I only enter via VPN?

    nicolas.santisteban

      First excuse my english. Isn't my native language.

       

      I have to monitorize some JBoss/Postgres DB/Hardware in some servers who are located in different cities from my country. So, the only way to enter to those servers (to deploy some .war, get logs, starts/stop servers, clean temporal files etc.) is thanks to a VPN. To access to those servers I have to manage some virtual machines, on them I have installed the VPN to those servers and when I want to make a deployment on the JBoss I make it via SSH or SFTP.

      But the problem its that I don't know how to connect the agents to the RHQ-Server wich is installed on another Virtual Machine. I know thats it's hard to understand me. So I made a graphic wich I hope it explains better the things I wanted to do/know.

      The only thing that I think that could work is install the RHQ-Server on the cloud so it could have a static IP and the agents could send the data to the server. (If it's possible)

       

      Thanks.

       

      How.png

        • 1. Re: How to install the agent in a server wich I only enter via VPN?
          lzoubek

          Hi Nicolas,

           

          I am not sure if I understand your setup. What is Jboss Server? is it a VM? or just a process running in VM? Why is there VPN then?

           

          If there is a different (internal) network inside VM you need to setup port forwarding on physical host level - but this may be painful, because your physical host may have only 1 IP and you'd need to forward all agent VM port's (there is going to be some NAT in place). The other way could placing RHQ Server into VPN where it can talk to all VMs.

           

          In general. You need to be able to interconnect RHQ Server and RHQ Agents in both directions. You must be able to connect from RHQ Agent VM to RHQ Server VM's port 7080 and from RHQ Server's VM to RHQ Agent's VMs to port 16163 (here agent's listens to server's commands).

          • 2. Re: How to install the agent in a server wich I only enter via VPN?
            nicolas.santisteban

            Hi Libor. Thanks for your answer

             

            The JBoss server is located in another city. The VM is to manage the VPN and when I turn it on I can access to those server to make deployments. There is a different VPN for a JBoss server.

            The only thing that I thought that could be possible is install various RHQ-Servers on the VM's but the problem it's that the Server (where is JBoss located) cannot find the VM (ping doesn't work). The IP That the VPN give me its (in one of the fews VM: 10.1.1.1) and when from the server (where is JBoss located) I make ping to my VM (192.168.129.114) it does not work.