VMware Cloud Community
TheBadMan82
Contributor
Contributor

Cannot Install HQ-Agent on XenServer 5.5 Update 2

Hi,

I posted this in related thread and I thought opening a new one would be propper form.
http://communities.vmware.com/message/1941943#1941943
I am having the same problems, but I can't get it to work.

[root@LXEN-1 bin]# rpm -qa | grep jre
jre-1.6.0_20-fcs
[root@LXEN-1 bin]# echo $HQ_JAVA_HOME
/usr/java/default
[root@LXEN-1 bin]# ls /home/hyperic/hq-plugins/
xen-plugin.jar

#######
# Using the NoJRE package
#######

[root@LXEN-1 hyperic-hq-agent-4.3.0]# ll
total 28
drwxr-xr-x 2 root root 4096 Apr 17 01:36 bin
drwxr-xr-x 3 root root 4096 Apr 17 01:36 bundles
drwxr-xr-x 2 root root 4096 May 4 15:45 conf
drwxr-xr-x 2 root root 4096 May 4 15:50 data
drwxr-xr-x 2 root root 4096 May 4 15:45 log
drwxr-xr-x 3 root root 4096 May 4 15:45 product_connectors
drwxr-xr-x 4 root root 4096 Apr 17 01:36 wrapper
[root@LXEN-1 hyperic-hq-agent-4.3.0]# cd bin
[root@LXEN-1 bin]# ./hq-agent.sh setup
- No token file found, waiting for Agent to initialize
- No token file found, waiting for Agent to initialize
- No token file found, waiting for Agent to initialize
[root@LXEN-1 bin]#
#######################

I am curious to see if HQ supports the latests version of XenServer.
Thank You very much for your assistance.

-Dave
0 Kudos
5 Replies
excowboy
Virtuoso
Virtuoso

Hi,

just for your information: If I understand the installation instructions correctly, you do not actually have to install the Agent on the Xen Server box.

"Select the HQ Agent connection (this is the agent that will connect to the Xen API, and collect metrics - so there must be connectivity between this agent and the Xen host)."


http://support.hyperic.com/display/hypcomm/Citrix+XenServer

Cheers,
Mirko
0 Kudos
TheBadMan82
Contributor
Contributor

Hi,

Yes that part I understand and I was able to get that working.
I am implementing this for a support staff to receive help desk tickets from Hyperic Emails.

The agent has to be installed on the XenServer host. The resources are identified by a prefix of the agent's name. The agent name is the hostname of the machine which it is installed. The support staff will not be able to find the VM in the cloud without the name of the XenServer.

The installation looks to be a shell script. Are there options for me to put directly in the script that tell it where the Token File exists?

-Dave
0 Kudos
excowboy
Virtuoso
Virtuoso

Dave,

if you start the Agent for the first time it should ask you a couple of questions and generate a token file.
What could cause an issue is the Java Service Wrapper.
You could try the following steps:
- Stop the Agent
- If it does not stop kill all related processes
- Delete the data directory
- Use the nowrapper script /bundles/agent-4.3.0-nnnn/bin/hq-agent-nowrapper.sh to start the Agent

Cheers,
Mirko
0 Kudos
excowboy
Virtuoso
Virtuoso

I see that there is another user reporting a similiar issue on a Windows host. Maybe its a problem of the new Beta version. Could you use the latest stable HQ Version instead of the 4.3 Beta if my steps did not help to fix the issue ?

Cheers,
Mirko
0 Kudos
TheBadMan82
Contributor
Contributor

I was able to use the no-jre package and then export the variable in the hq-agent.sh file. I also had to us 'start' for everything to work.
http://support.hyperic.com/display/hypcomm/Citrix+XenServer

I don't understand why I need to delete what the agent adds by default. I see that the platform is labeled as Linux. Not a huge deal to me.
It seems to have more information about the XenServer compared to when I re-add the resource as described in the above link.

Why is one process perferred over another?

Thank you for your help,
-Dave
0 Kudos