VMware Cloud Community
murugurams
Contributor
Contributor

Problem in Configuring remote Agent

Hi ,
I am using HQ opensource edition.I am facing a problem while configuring remote agent.

I have installed an HQ agent in host1 and HQ server in host2.I am trying to configure (or monitor ) from host2.But i am not able to see any services in host2 which ever is running in host1. even i am not able to see platform usage details.

I am getting the following message in dashboard :
There are no auto-discovered resources and HQ inventory is empty.
Please install and startup some HQ agents to get started with HQ.

My agent configuration details as follows

Host1 (Agent machine configuration)
agent.setup.camIP=host2
agent.setup.camPort=7080
agent.setup.camSSLPort=7443
agent.setup.camSecure=No
agent.setup.camLogin=hqadmin
agent.setup.camPword=hqadmin
agent.setup.agentIP=host1
agent.setup.agentPort=2164
#agent.setup.resetupTokens=no

agent.listenIp=host1
agent.listenPort=2164

Host2(HQ Server )
agent.setup.camIP=host2
agent.setup.camPort=7080
agent.setup.camSSLPort=7443
agent.setup.camSecure=No
agent.setup.camLogin=hqadmin
agent.setup.camPword=hqadmin
agent.setup.agentIP=host1
agent.setup.agentPort=2164
#agent.setup.resetupTokens=no

agent.listenIp=host1
agent.listenPort=2164

please help me resolve this



Thanks and Regards
Ram
0 Kudos
8 Replies
MarieMcGarry
Enthusiast
Enthusiast

Hi,

Was the HQ server running the first time you started the Agent? That is a requirement.

Is there a firewall or proxy between agent and server? If so, you need to host and ports accordingly.

Here is a diagram that illustrates agent server communications that might be helpful:
http://support.hyperic.com/display/DOC/Agent+Server+Communications+Diagram

Here is a description of what goes on during agent startup:
http://support.hyperic.com/display/DOC/Understanding+Agent+Configuration

You can force the Agent to re-obtain its configuration data by following these instructions:
http://support.hyperic.com/display/DOC/Understanding+Agent+Configuration#UnderstandingAgentConfigura...

Also, you could check the log files in serverhome/logs directory for clues.

Good luck.

-m

Message was edited by: MarieMcGarry
0 Kudos
murugurams
Contributor
Contributor

Hi,
Agent service is running successfully.I don't have any firewall but proxy server is there.
i tried with agent.proxyHost and agent.proxyPort settings which is mentioned in Document. after that also i am getting the same message.
do i need to use both listen and proxy Configuration ?

configuration details
agent.setup.camIP=serverIP
agent.setup.camPort=7080
agent.setup.camSSLPort=7443
agent.setup.camSecure=No
agent.setup.camLogin=hqadmin
agent.setup.camPword=hqadmin
agent.setup.agentIP=AgentIP
agent.setup.agentPort=2164
#agent.setup.resetupTokens=no

#agent.listenIp=AgentIP
#agent.listenPort=2164

agent.proxyHost=ProxyServerIP
agent.proxyPort=80

Thanks for your quick reply

Thanks and Regards
Ram
0 Kudos
excowboy
Virtuoso
Virtuoso

Hi,

please try run "hq-agent.sh setup" or "hq-agent.exe setup " for a Windows host and configure the parameters manually. You need to make sure that the Agent is acually running.
After that please restart your Agent, e.g. hq-agent.sh stop && hq-agent.sh start


Cheers,
Mirko
0 Kudos
murugurams
Contributor
Contributor

Hi Mikro,
as you told i ran a command (hq-agent.bat setup )in agent machine ..But i am getting Testing insecure Connection Failure message.

Please find the attached screenshot for more details

Thanks and Regards
Ram
0 Kudos
excowboy
Virtuoso
Virtuoso

Hi Ram,

the proxy options for the HQ Agent configuration only apply if you're using unidirectional communication model. This is in fact an HQ Enterprise feature and I guess you're trying to get the Open Source version running so you can't use this feature.
So you need to make sure that your Agent can connect to the HQ Server and vice versa.


Cheers,
Mirko
0 Kudos
murugurams
Contributor
Contributor

Hi Mirko
Can we connect remote agent using Adding New Platform functionality ?


Thanks and Regards
Ram
0 Kudos
murugurams
Contributor
Contributor

Hi Mirko,
I am using opensource edition only.
i have server and agent in the same network. i am able to connect without proxy.


Thanks and Regards
Ram
0 Kudos
murugurams
Contributor
Contributor

Hi,
I resolved this problem.Problem in my network only.ports were disabled in my machine.


Thank you very for your quick response

Thanks and Regards
Ram
0 Kudos