17. Pré-requisitos
PostgreSQL 8.2.4+
Inicializa o PostgreSQL
com o arquivo de
dados criado
17
Sunday, June 27, 2010
18. Pré-requisitos
PostgreSQL 8.2.4+
Cria banco de
dados para o JON
Acessa banco de
dados criado
Nenhuma tabela
foi criada no banco
de dados
18
Sunday, June 27, 2010
19. Instalação
jon-server
unzip jon-server-2.1.2.SP1.zip
bin/rhq-server.sh start
Acessar http://localhost:7080
Siga as instruções
19
Sunday, June 27, 2010
20. Inicialização do
jon-server
(...) jon-server
inicializado
20
Sunday, June 27, 2010
21. Clique aqui para
continuar a
instalação :-)
21
Sunday, June 27, 2010
22. Informe qualquer banco para
verificar a conectividade com o
Postgres
Informe um nome de usuário
válido no banco
Clique aqui e torça para que o
icone verde seja mostrado
22
Sunday, June 27, 2010
23. Clique aqui para criação do
schema do banco do JON 23
Sunday, June 27, 2010
24. Um popup será aberto com o seguinte conteúdo
Agora sim vamos
criar o banco do
JON
Garanta que o nome do banco e
nome do usuário estejam corretos
e clique em Create Database
24
Sunday, June 27, 2010
25. Este ícone indica que algo de
errado aconteceu. Clique nele e
veja a mensagem acima.
Verifique se esta mensagem de erro
foi apresentada no log do jon-server:
“rhq_principal” does not exist
25
Sunday, June 27, 2010
26. BUG conhecido
Resolva da forma mais simples
26
Sunday, June 27, 2010
27. Agora, tente novamente
a criação do schema
Como já criamos uma das tabelas
que seriam criadas, o instalador
acha que estamos sobrescrevendo
uma instalação antiga
Clique aqui para
continuar a instalação 27
Sunday, June 27, 2010
28. Aguarde o fim da instalação
Ao final, acesse
http://localhost:7080
e autentique-se com
rhqadmin/rhqadmin
28
Sunday, June 27, 2010
33. Os 2 links mais
importantes do JON
Tela principal do JON
33
Sunday, June 27, 2010
34. Cockpit de administração
Conjunto de ‘portlets’
com resumo das coisas
mais importantes do
ambiente
Acesso a todos os
recursos inventariados
pelo JON
Nenhum recurso
inventariado!
(0)
34
Sunday, June 27, 2010
36. Instalação
jon-agent
unzip jon-agent-2.1.2.SP1.zip
Configure RHQ_AGENT_JAVA_HOME
sudo bin/rhq-agent.sh
Responda às questões que seguem...
36
Sunday, June 27, 2010
37. Configure o diretório de
instalação do Java no
arquivo
rhq-agent-env.sh
Inicie o jon-agent e
responda as questões que
seguem
37
Sunday, June 27, 2010
38. Por enquanto, utilize os
valores padrão
jon-agent já está
coletando dados e
enviando-os ao jon-server
38
Sunday, June 27, 2010
93. portal do
suporte da
RedHat
não há opção de
download do
agente do JON
:-/
81
Sunday, June 27, 2010
94. portal da
comunidade
JBoss
também não há
opção de
download do
agente do Jopr
o.O
82
Sunday, June 27, 2010
95. o download do agente é
agora realizado pela
própria interface de
administração do
{JON, Jopr} Server
https://www.jboss.org/community/wiki/Jopr-Installation
83
Sunday, June 27, 2010
96. o download do agente é
agora realizado pela
própria interface de
administração do
{JON, Jopr} Server
https://www.jboss.org/community/wiki/Jopr-Installation
83
Sunday, June 27, 2010
97. após download, instale
o agente
$ java -jar rhq-enterprise-agent-1.2.0.GA.jar --install
======================================
ANT target [(default)]
Sat May 23 09:43:43 BRT 2009
======================================
[header-for-install] [echo]
===== RHQ AGENT INSTALL =====
Installing Agent To: .
Version: 1.2.0.GA
Build Number: 3862
Jar File: /Volumes/Data/Applications/JavaTools/rhq-enterprise-agent-1.2.0.GA.jar
[install] [echo] Extract the agent distro zip from the agent update binary
[install] [unjar] Expanding: /Volumes/Data/Applications/JavaTools/rhq-enterprise-
agent-1.2.0.GA.jar into /Volumes/Data/Applications/JavaTools
[install] [echo] Unzip the agent distro into the new installation directory
[install] [unzip] Expanding: /Volumes/Data/Applications/JavaTools/rhq-enterprise-
agent-1.2.0.GA.zip into /Volumes/Data/Applications/JavaTools
[install] [echo] chmod +x on executables under ./rhq-agent
[install] [echo] Remove the agent distro zip
[install] [delete] Deleting: /Volumes/Data/Applications/JavaTools/rhq-enterprise-
agent-1.2.0.GA.zip
[install] [echo] DONE! Agent version 1.2.0.GA (build number=3862) has been installed to .
84
Sunday, June 27, 2010
98. após instalação,
inicialize o agente.
$ sudo ./rhq-agent.sh -s
RHQ 1.2.0.GA [3862] (Mon Apr 27 17:55:22 BRT 2009)
Answer the following questions to setup this RHQ Agent instance.
- After each prompt, a default value will appear in square brackets.
If you press the ENTER key without providing any value,
the new preference value will be set to that default value.
- If you wish to rely on the system internal default value and
not define any preference value, enter '!*'.
- If you wish to stop before finishing all the questions but still
retain those preferences you already set, enter '!+'.
- If you wish to cancel before finishing all the questions and revert
all preferences back to their original values, enter '!-'.
- If you need help for a particular preference, enter '!?'.
Agent Name [10.0.0.14] : localhost
Agent Hostname or IP Address [!*] :
Agent Port [16163] :
RHQ Server Hostname or IP Address [10.0.0.14] : localhost
RHQ Server Port [7080] :
The setup has been completed for the preferences at node [/rhq-agent/default].
>
85
Sunday, June 27, 2010
99. de volta a onde estávamos, lá
estão os recursos descobertos.
Importe-os.
86
Sunday, June 27, 2010
100. Mas, cadê o JBoss de volta a onde estávamos, lá
que não foi estão os recursos descobertos.
descoberto? Importe-os.
86
Sunday, June 27, 2010
101. plugins no
plugins no
JON
JON
2.2.0.GA
2.2.0.GA
87
Sunday, June 27, 2010
102. plugins no
plugins no
JON
JON
2.2.0.GA
2.2.0.GA
Mas, cadê os
plugins do JBoss,
Tomcat e cia?
87
Sunday, June 27, 2010
103. plugins no
JOPR 2.2.0
88
Sunday, June 27, 2010
104. plugins no
JOPR 2.2.0
88
Sunday, June 27, 2010
127. toda
documentação
está aqui.
109
Sunday, June 27, 2010
128. Instale o JON/Jopr, inventarie uma
instância de JBoss, configure algumas
métricas e alertas, execute os testes de
carga e acompanhe os resultados.
110
Sunday, June 27, 2010