EMCC 13新增其它主機和資料庫

lhrbest發表於2018-10-22


OMS:新增監控資源


OEMCC監控的主機需要部署對應的agent,官檔描述如下:



Oracle Management Agent (Management Agent) is one of the core components of Enterprise Manager Cloud Control that enables you to convert an unmanaged host to a managed host in the Enterprise Manager system. The Management Agent works in conjunction with the plug-ins to monitor the targets running on that managed host.


我直接在OEMCC上手動新增目標:

起初在被監控的主機上部署agent時,碰到報錯,如下:

報錯資訊文字:


在主機 192.168.1.61 上執行命令 cd /opt/app/scratch/agentHome/ADATMP_2018-01-23_13-38-45-PM;/opt/app/scratch/agentHome/ADATMP_2018-01-23_13-38-45-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=192.168.1.61 AGENT_BASE_DIR=/opt/app/scratch/agentHome OMS_HOST=OMS EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/opt/app/scratch/agentHome/agent_inst b_doDiscovery=false START_AGENT=false b_forceInstCheck=true -force AGENT_PORT=3872 失敗


錯誤訊息: The Oracle Management Server (OMS) host and port specified via OMS_HOST and EM_UPLOAD_PORT is not available. Pass in a valid hostname and port number for the OMS to successfully deploy the agent.


退出程式碼 :1


開始認為是主機間可能有防火牆沒關閉,或者是埠配置不對,進一步根據MOS的一些文件說明:

•EM 12C: Enterprise Manager 12c Cloud Control Agent Silent Installation Fails while Validating OMS Host and Port (文件 ID 1368010.1)

•EM 12c Agent Install fails with ERROR: The Oracle Management Server (OMS) host and port specified via OMS_HOST and EM_UPLOAD_PORT is not available (文件 ID 1524756.1)


首先確認OMS的埠配置正確:


[oracle@OMS ~]$ /u01/app/oracle/product/oem13.2/middleware/bin/emctl status oms -details

Oracle Enterprise Manager Cloud Control 13c Release 2  

Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.

Enter Enterprise Manager Root (SYSMAN) Password : 

Console Server Host        : OMS

HTTP Console Port          : 7788

HTTPS Console Port        : 7802

HTTP Upload Port          : 4889

HTTPS Upload Port          : 4903  <<<===== ========  OMS Upload Port is same the port configured at the agent

EM Instance Home          : /u01/app/oracle/product/oem13.2/gc_inst/em/EMGC_OMS1

OMS Log Directory Location : /u01/app/oracle/product/oem13.2/gc_inst/em/EMGC_OMS1/sysman/log

OMS is not configured with SLB or virtual hostname

Agent Upload is locked.

OMS Console is locked.

Active CA ID: 1

Console URL: https://OMS:7802/em

Upload URL: https://OMS:4903/empbs/upload


WLS Domain Information

Domain Name            : GCDomain

Admin Server Host      : OMS

Admin Server HTTPS Port: 7102

Admin Server is RUNNING


Oracle Management Server Information

Managed Server Instance Name: EMGC_OMS1

Oracle Management Server Instance Host: OMS

WebTier is Up

Oracle Management Server is Up

JVMD Engine is Up


BI Publisher Server Information

BI Publisher Managed Server Name: BIP

BI Publisher Server is Down

BI Publisher is disabled, to enable BI Publisher on this host, use the 'emctl config oms -enable_bip' command

[oracle@OMS ~]$


檢視日誌發現是這一段之後報錯:


/opt/app/scratch/agentHome/agent_13.2.0.0.0/jdk/jre/bin/java -classpath /opt/app/scratch/agentHome/agent_13.2.0.0.0/jlib/agentInstaller.jar:/opt/app/scratch/agentHome/agent_13.2.0.0.0/oui/modules/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /opt/app/scratch/agentHome/agent_13.2.0.0.0 /opt/app/scratch/agentHome/ADATMP_2018-01-23_13-38-45-PM /opt/app/scratch/agentHome $args -prereq


Validating the OMS_HOST & EM_UPLOAD_PORT has failed


根據文件1368010.1的思路排查:


1). OMS status


[oracle@OMS ~]$ $OMS_HOME/bin/emctl status oms

Oracle Enterprise Manager Cloud Control 13c Release 2  

Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.

WebTier is Up

Oracle Management Server is Up

JVMD Engine is Up

BI Publisher Server is Down

BI Publisher is disabled, to enable BI Publisher on this host, use the 'emctl config oms -enable_bip' command


OMS is ok.


2). ping OMS


[oracle@jystdrac1 ADATMP_2018-01-23_13-38-45-PM]$ ping OMS

ping: unknown host OMS

[oracle@jystdrac1 ADATMP_2018-01-23_13-38-45-PM]$ ping 192.168.1.88

PING 192.168.1.88 (192.168.1.88) 56(84) bytes of data.

64 bytes from 192.168.1.88: icmp_seq=1 ttl=64 time=1.37 ms

64 bytes from 192.168.1.88: icmp_seq=2 ttl=64 time=0.615 ms


配置/etc/hosts,增加:

#OMS

192.168.1.88 OMS


3).

wget http://192.168.1.88:4903/empbs/genwallet

or

wget https://192.168.1.88:4903/empbs/genwallet


wget http://OMS:4903/empbs/genwallet


[oracle@jystdrac1 ~]$ wget http://OMS:4903/empbs/genwallet

--2018-01-23 16:02:03--  http://oms:4903/empbs/genwallet

Resolving oms... 192.168.1.88

Connecting to oms|192.168.1.88|:4903... connected.

HTTP request sent, awaiting response... No data received.

Retrying.


--2018-01-23 16:02:04--  (try: 2)  http://oms:4903/empbs/genwallet

Connecting to oms|192.168.1.88|:4903... connected.

HTTP request sent, awaiting response... No data received.

Retrying.


--2018-01-23 16:02:06--  (try: 3)  http://oms:4903/empbs/genwallet

Connecting to oms|192.168.1.88|:4903... connected.

HTTP request sent, awaiting response... No data received.

Retrying.


^C


4).

再次嘗試重新部署agent成功。


在OEMCC上部署agent(推送方式)步驟截圖如下:


最後就可以在OEMCC上直觀看到該主機的相關監控資料:




至此,我們就熟悉了OEMCC 13.2 的整體安裝、部署、配置agent等基本操作,後續就可以在這個環境下逐漸深入學習並感受OEMCC的強大功能了。








來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2217130/,如需轉載,請註明出處,否則將追究法律責任。

相關文章