JBoss Web-Application Cluster: Installation of JBoss ON Agent on JBoss EWS nodes and JBoss EAP nodes

Today I want to share installation of JBoss ON Agent on JBoss EWS nodes and JBoss EAP nodes. This is the sixth post and also the last post, part of JBoss Web-Application Cluster.

Let’s start installation of JBoss ON Agent:

1. Install Java (JBoss EWS nodes only)

# cd /opt
# rpm -ivh /opt/jdk-8u45-linux-x64.rpm

2. Install JBoss ON Agent

# yum -y install wget
# wget http://200.200.200.55:7080/agentupdate/download
# mv download rhq-agent.jar
# java -jar rhq-agent.jar --install
# /opt/rhq-agent/bin/rhq-agent.sh


► Just enter for Agent Name
► Fill with JBoss node own IP address
► Just enter for Agent Port
► Fill with JBoss ON IP address
► Just enter for RHQ Server Port
► When a message "The agent is waiting for plugins to be downloaded..." and then appear "> " instead of back to "# " just hit CTRL+C

3. Register JBoss ON Agent as startup service

# cp /opt/rhq-agent/bin/rhq-agent-wrapper.sh /etc/init.d/rhq-agent-wrapper.sh
# vi /etc/init.d/rhq-agent-wrapper.sh


Fill these commands between "Function that simply dumps a message iff debug mode is enabled" and debug_wrapper_msg ()

RHQ_AGENT_HOME=/opt/rhq-agent
RHQ_JAVA_HOME=/usr/java/jdk1.8.0_45
export RHQ_AGENT_HOME
export RHQ_JAVA_HOME


# /etc/init.d/rhq-agent-wrapper.sh start
# chkconfig --add rhq-agent-wrapper.sh
# chkconfig rhq-agent-wrapper.sh on

Let’s access JBoss ON to ensure JBoss EWS nodes and JBoss EAP nodes is discovered by JBoss ON service

1. Open JBoss ON on browser with address http://200.200.200.55:7080 and login with rhqadmin

2. Navigate to Inventory and click Discovery Queue

► Check on all nodes and its service(s)
► Click Import

All nodes and its service(s) is now monitored by JBoss ON service.

3. Navigate to Inventory and click Platforms

► Choose a node to see in a detail of a node information

4. Navigate to Reports and click Platform Utilization

From this menu all nodes perfomance is summarized.

Finally, the installation of JBoss ON Agent on JBoss EWS nodes and JBoss EAP nodes is done. This is the last post of JBoss Web-Application Cluster. See you again on my next post, bye!

Ade Destrianto
Fortune favors the bold.

Leave a Reply

Your email address will not be published. Required fields are marked *