OEMCC13.2 添加监控目标
2018-10-20 00:32 AlfredZhao 阅读(2188) 评论(0) 编辑 收藏 举报1.需求描述
在OEMCC13.2集群中添加监控目标,包括Oracle数据库、Weblogic中间件。2.添加数据库目标
2.1 部署agent
需要先在数据库主机上部署agent。2.1.1 直接安装方式
对于x86-64的linux主机,OEMCC自带,可以直接推送安装agent。从Setup -> Add Target -> Add Targets Manually进入,选择Install Agent on Host,示例如下: 提示:如果没有dns服务解析,安装agent的机器需要在/etc/hosts添加OMS的主机名解析。
2.1.2 离线安装方式
对于其他平台,不自带,需要先离线下载安装,本次以AIX平台为例演示如何离线安装。 设置为offline:
选择check updates,下载提示的文件,并导入:
选择AIX 平台对应agent版本13.2,并按提示进行下载和导入:
此后就可以按照步骤2.1.1中的方法推送安装AIX平台的agent,如下图所示:
2.1.3 命令行安装方式
上述两种方法本质都是通过推送方式安装agent,此外我们还可以选择用命令行模式安装:--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状态正常:
2.2 添加集群资源
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:
2.3 添加数据库
1)添加单实例数据库,从Setup -> Add Target -> Add Targets Manually进入,选择Add Target Declaratively -> Database Instance,示例如下:
2)最终数据库添加成功,结果如下:
3.添加中间件目标
添加中间件监控目标: 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监控目标的添加:
到此,监控目标已完成添加,回到首页看下整体资源监控情况:
AlfredZhao©版权所有「从Oracle起航,领略精彩的IT技术。」