3.添加中間件目標web
在OEMCC13.2集羣中添加監控目標,包括Oracle數據庫、Weblogic中間件。數據庫
須要先在數據庫主機上部署agent。
oracle
對於其餘平臺,不自帶,須要先離線下載安裝,本次以AIX平臺爲例演示如何離線安裝。
設置爲offline:
選擇check updates,下載提示的文件,並導入:
選擇AIX 平臺對應agent版本13.2,並按提示進行下載和導入:
此後就能夠按照步驟2.1.1中的方法推送安裝AIX平臺的agent,以下圖所示:
app
上述兩種方法本質都是經過推送方式安裝agent,此外咱們還能夠選擇用命令行模式安裝:ide
--1.解壓文件: XDSYDB:/app/oracle/agent>unzip 13.2.0.0.0_Plugins_212.zip -d /app/oracle/media/ Archive: 13.2.0.0.0_Plugins_212.zip creating: /app/oracle/media/plugins/ inflating: /app/oracle/media/plugins/oracle.sysman.oh.discovery.plugin-13.2.0.0.0.farb inflating: /app/oracle/media/plugins/oracle.sysman.si.discovery.plugin-13.2.2.0.0.farb inflating: /app/oracle/media/plugins/oracle.sysman.oh.agent.plugin-13.2.0.0.0.farb inflating: /app/oracle/media/plugins/oracle.sysman.db.discovery.plugin-13.2.2.0.0.farb inflating: /app/oracle/media/plugins/oracle.sysman.emas.discovery.plugin-13.2.2.0.0.farb inflating: /app/oracle/media/plugins.txt XDSYDB:/app/oracle/agent>unzip 13.2.0.0.0_AgentCore_212.zip -d /app/oracle/media/ Archive: 13.2.0.0.0_AgentCore_212.zip inflating: /app/oracle/media/agentcore.bin inflating: /app/oracle/media/agent.rsp inflating: /app/oracle/media/agentDeploy.sh inflating: /app/oracle/media/agentimage.properties inflating: /app/oracle/media/unzip inflating: /app/oracle/media/zip XDSYDB:/app/oracle/agent> --2.部署agent ./agentDeploy.sh AGENT_BASE_DIR=/app/oracle/agent -ignorePrereqs PROPERTIES_FILE=/app/oracle/media/agent.properties OMS_HOST=myslb.oracle.com EM_UPLOAD_PORT=4903 AGENT_REGISTRATION_PASSWORD=oracle123 AGENT_INSTANCE_HOME=/app/oracle/agent/agent_inst SCRATCHPATH=/app/oracle/agent/tmp --3.按照提示root執行腳本 ** Agent Port Check completed successfully.** Validated the agent port :- ----3872 shared agent value is :false Agent Mode is None Agent Configuration completed successfully The following configuration scripts need to be executed as the "root" user. Root script to run : /app/oracle/agent/agent_13.2.0.0.0/root.sh Waiting for agent targets to get promoted... Successfully Promoted agent and its related targets to Management Agent --4.查看agent狀態: XDSYDB:/app/oracle/agent/agent_13.2.0.0.0/bin>./emctl status agent Oracle Enterprise Manager Cloud Control 13c Release 2 Copyright (c) 1996, 2016 Oracle Corporation. All rights reserved. --------------------------------------------------------------- Agent Version : 13.2.0.0.0 OMS Version : 13.2.0.0.0 Protocol Version : 12.1.0.1.0 Agent Home : /app/oracle/agent/agent_inst Agent Log Directory : /app/oracle/agent/agent_inst/sysman/log Agent Binaries : /app/oracle/agent/agent_13.2.0.0.0 Core JAR Location : /app/oracle/agent/agent_13.2.0.0.0/jlib Agent Process ID : 52953532 Parent Process ID : 7602548 Agent URL : https://XDSYDB:3872/emd/main/ Local Agent URL in NAT : https://XDSYDB:3872/emd/main/ Repository URL : https://myslb.oracle.com:4903/empbs/upload Started at : 2018-10-17 13:12:42 Started by user : oracle Operating System : AIX version 6.1 (ppc64) Number of Targets : 3 Last Reload : (none) Last successful upload : 2018-10-17 13:14:58 Last attempted upload : 2018-10-17 13:14:58 Total Megabytes of XML files uploaded so far : 0.21 Number of XML files pending upload : 0 Size of XML files pending upload(MB) : 0 Available disk space on upload filesystem : 63.59% Collection Status : Collections enabled Heartbeat Status : Ok Last attempted heartbeat to OMS : 2018-10-17 13:14:57 Last successful heartbeat to OMS : 2018-10-17 13:14:57 Next scheduled heartbeat to OMS : 2018-10-17 13:15:57 --------------------------------------------------------------- Agent is Running and Ready
在OEMCC中確認agent狀態正常:
ui
1)添加集羣資源:從Setup -> Add Target -> Add Targets Manually進入,選擇Add Using Guided Process -> Oracle Cluster and High Availability Service:
2)添加集羣數據庫:從Setup -> Add Target -> Add Targets Manually進入,選擇Add Using Guided Process -> Oracle Database,Listener and Automatic Storage Management:
spa
1)添加單實例數據庫,從Setup -> Add Target -> Add Targets Manually進入,選擇Add Target Declaratively -> Database Instance,示例以下:
命令行
2)最終數據庫添加成功,結果以下:
code
添加中間件監控目標:
1)從Setup -> Add Target -> Add Targets Manually進入,選擇Add Using Guided Process -> Oracle Fusion Middleware/WebLogic Domain:
2)從填寫weblogic的IP地址,端口,用戶名和密碼,Unique Domain Identifier填寫本身能夠識別的名稱,這裏以Farm01爲例,Agent從可用列表中選擇一個便可:
3)完成weblogic監控目標的添加:
到此,監控目標已完成添加,回到首頁看下總體資源監控狀況: