This is my quick and dirty installation guide for a JON Server and a JON Agent
Main post:
Set up database
- First you need to install a database (Oracle or PostGre are supported)
- yum install postgresql postgresql-server
(when using Fedora Linux, adapt for other distributions)
Configure the new service to start automatically
/sbin/chkconfig postgresql on
service postgresql initdb
change /var/lib/pgsql/data/postgresql.conf
listen_addresses='*'
http://www.postgresql.org/docs/9.0/static/auth-pg-hba-conf.html
/var/lib/pgsql/data/pg_hba.conf
host all all 0.0.0.0/0 trust
(by default it is only allowed to receive request from localhost:
host all all 127.0.0.1/32 trust)
host all all 127.0.0.1/32 trust)
service postgresql stop
service postgresql start
- Create a user: rhqadmin (password: rhqadmin)
http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/2.4/html/Installation_Guide/JON_Server_Installation.html
cd /var/lib/pgsql/data Create role rhqadmin:
createuser -h 127.0.0.1 -p 5432 -U postgres -S -D -R rhqadmin
Create db rhq:
createdb -h 127.0.0.1 -p 5432 -U postgres -O rhqadmin rhq
(if you are using another machine to run your DB server make sure your SELinux is disabled)service iptables stop
chkconfig iptables off
Installing JON server
Official Red Hat support
- Unzip the downloaded JON-zip-file
- $ cd /jon-server-2.x.x.GA/bin$ export JAVA_HOME=/usr/java/jdk1.6.0_05 $./rhq-server.sh start Trying to start the RHQ Server... RHQ Server (pid 14413) is starting
- Goto http://localhost:7080/ (and click "Click here to continue the installation")
Setting up JON database |
- Click "Install"
- You will be redirected to http://localhost:7080/Login.do
Login with user rhqadmin (default password is rhqadmin)
Itis not the user/pw of the database!
- A valid JBoss Operations Network license is required to use this software. Please click the Update License link below.
- Get your license here: https://access.redhat.com/jbossnetwork/restricted/softwareDownloadJBNLicense.html
- Click Browse ... and choose the downloaded xml license file. Click OK.
- If you want rather a command line installation than a GUI based installation, you could have entered all data within /bin/rhq-server.properties (use
generate-db-password.sh
to generate an encrypted password). After that just run JON server : /bin/rhq-server.sh start
Official link
- Get the agent JAR by hitting http://localhost:7080/agentupdate/download
- Save the rhq-enterprise-agent-3.0.0.GA.jar (~ 11 MB) to the directory your agent should be installed to
- Run
java -jar rhq-enterprise-agent-3.0.0.GA.jar --install
which will create a rhq-agent directory - In the directory ./
rhq-agent/bin run
./rhq-agent.sh --cleanconfig
- After the first setup, start your agent with
./rhq-agent.sh
More detailed installation steps you'll find here:
http://amitbhayani.blogspot.com/
http://pilhuhn.blogspot.com/2008/05/writing-rhq-plugin-part-1.html
No comments:
Post a Comment