Friday, February 26, 2010

JON installation

JON 2.3.1 installation on Linux (RHEL 5)

1) Create required system user for JON installation
#useradd -m jbossadm
#passwd jbossadm

2) Install JRE6 Runtime environment
Download jre-6u18-linux-i586.bin from Sun website.
Copy to the install folder /opt
#./jre-6u18-linux-i586.bin
This should install JRE under directory jre1.6.0_18

3) Download required JON installable files
Download jon-server-2.3.1.GA.zip (JON) from RedHat
Download jon-plugin-pack-eap-2.3.1.GA.zip (JON for EAP) from RedHat
Download License with Monitoring (Right click and download XML)
Copy to the files to Unix server /opt/software

4) Peform Oracle installation
You can use required database of your choice. Oracle and Postgresql are supported right now.

5) Run these SQL scripts (should be run with dba priviliges - user: SYSTEM)
CREATE USER jon IDENTIFIED BY jon;
GRANT connect, resource TO jon;
show parameter db_block_size;
CONNECT sys/oracle AS sysdba;
GRANT SELECT ON sys.dba_pending_transactions TO jon;
GRANT SELECT ON sys.pending_trans$ TO jon;
GRANT SELECT ON sys.dba_2pc_pending TO jon;
GRANT EXECUTE ON sys.dbms_system TO jon;

6) Install JON
#cp /opt/software/jon-server-2.3.1.GA.zip /opt
#mkdir /opt/jon-server-2.3.1.GA
#unzip jon-server-2.3.1.GA.zip

7) Install JON EAP Plugin

Unzip jon-plugin-pack-eap-2.3.1.GA.zip to any temp location
From the extracted location, move the jar files to /opt/jon-server-2.3.1.GA/jbossas/server/default/deploy/rhq.ear.rej/rhq-downloads/rhq-plugins directory
Delete jon-plugin-pack-eap-2.3.1.GA temp directory

8) Update the .profile to set the environment variables
update the .bash_profile file to read as:
PATH=$PATH:$HOME/bin
JAVA_HOME=/opt/jre1.6.0_18
RHQ_SERVER_JAVA_HOME=$JAVA_HOME
RHQ_SERVER_HOME=/opt/jon-server-2.3.1.GA
export PATH=$JAVA_HOME/bin:$RHQ_SERVER_HOME/bin:$PATH
export RHQ_SERVER_JAVA_HOME RHQ_SERVER_HOME

cd /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin
. ./oracle_env.sh
cd ~

9) Start the server
/opt/jon-server-2.3.1.GA/bin/rhq-server.sh start

10) Continue JON Install
Access URL: http://localhost:7080 and click here to continue install

Database Type: oracle 10g
Database Connection URL: jdbc:oracle:thin:@172.25.32.120:1521:XE
Database JDBC Driver Class: oracle.jdbc.driver.OracleDriver
Database XA DataSource Class: oracle.jdbc.xa.client.OracleXADataSource
Database User Name: jon
Database Password: jon

Test connection
Install server
Wait for confirmation message

11) Access JON admin console
http://{ip_address}:7080/Login.do
default user name: rhqadmin
default password: rhqadmin

12) Update Parameters
#cd /opt/jon-server-2.3.1.GA/bin
#vi rhq-server.properties
uncomment java.rmi.server.hostname

Edit this section as approprite
# Email
rhq.server.email.smtp-host=ken-exfe2.ii-corpnet.com
rhq.server.email.smtp-port=25
rhq.server.email.from-address=rhqadmin@JON-QA

# Embedded RHQ Agent
rhq.server.embedded-agent.enabled=false
rhq.server.embedded-agent.name=
rhq.server.embedded-agent.reset-configuration=true
rhq.server.embedded-agent.disable-native-system=false

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Newer›  ‹Older