VMware Cloud Community
jimesti
Contributor
Contributor

New Install - HQ Agent - Invalid JAVA HOME

Hi,

Just installed the server and then the agent on a brand new Centos 5.3. I used the 32 bit RPM builds.

The server went fine.

Howevever, the agent won't start - when I go service hyperic-hq-agent status it tells me:

Invalid Java Home detected at /usr/java/jdk1.5.0_12

That export is in the hyperic-hq-agent script in the /etc/init.d....but there is no /usr/java/jdk1.5.0_12 directory on my server.

What step during install did I miss? Was I supposed to install java along the way?

Jim
0 Kudos
4 Replies
jimesti
Contributor
Contributor

K...did more reading and it looks like the RPM version does not include the JDK/JRE (whatever).

Is there a nice yum install command to get it installed on Centos?

Jim
0 Kudos
mcmesser
Hot Shot
Hot Shot

Correct, RPM version of HQ Agent is noJRE.

And I'm pretty sure the Sun JRE is not distributed with CentOS, so you'll need to grab it from java.sun.com.
0 Kudos
enterprisetoday
Contributor
Contributor

I installed jre-6u11-linux-i586.rpm (downloaded from sun website).

You'll have to make some modifications /etc/init.d/hyperic-hq-agent
modify the java home line to read:
export HQ_JAVA_HOME=/usr/java/default

Then everything should be fine.
0 Kudos
TheBadMan82
Contributor
Contributor

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