`

Grid Control服务端看不到Agent相关信息,同时OMS状态为unknown处理

 
阅读更多

一次Grid Control的agent是启动的,但是在GC服务端看不到相关信息,而且OMS端状态不正确问题处理过程。
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.5.0
OMS Version       : 10.2.0.5.0
Protocol Version  : 10.2.0.5.0
Agent Home        : /opt/oracle/agentbase/agent10g
Agent binaries    : /opt/oracle/agentbase/agent10g
Agent Process ID  : 214
Parent Process ID : 1
Agent URL         : https://gd_rdb01:3872/emd/main/
Repository URL    : https://gd-adu03:1159/em/upload
Started at        : 2011-05-26 14:11:33
Started by user   : oraagent
Last Reload       : 2011-05-26 14:11:33
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far :     0.00
Number of XML files pending upload           :     1045
Size of XML files pending upload(MB)         :    50.07
Available disk space on upload filesystem    :    15.79%
Collection Status                            : Disabled by Upload Manager
Last attempted heartbeat to OMS              : 2011-07-18 11:25:02
Last successful heartbeat to OMS             : unknown
---------------------------------------------------------------
Agent is Running and Ready
----这里可以看到agent其实是不正常的:Last successful heartbeat to OMS             : unknown
尝试upload,结果报错:
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl upload
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..

参看agent日志:
 2011-07-18 14:09:30,715 Thread-94 ERROR pingManager: Did not receive valid response to ping "ERROR-Agent is blocked. Blocked reason is: Agent is out-of-sync with repository. This most likely means that the agent was reinstalled or recovered. Please contact an EM administrator to unblock the agent by performing an agent resync from the console. Please contact EM adminstrator to unblock the agent" 
 
在GC服务器上重新Resynchronize一下。
+ Navigate to Setup -> Agents -> Click on problematic Agent name 
+ In Agent home page click on "Resynchronize" Button on right hand top of the page. 
Choose the 'Unblock Agent' option and click Continue
Ensure that the Agent is up and running when attempting the Resynchronization.
Once the re-synchronization is completed successfully, the Agent should be able to communicate with the OMS.
结果报错如下:
The Oracle Management Server(OMS) has blocked this agent because it has either been reinstalled or restored from a filesystem backup. It appears that you 
have already run an Agent Resynchronization against this agent. Please correct any errors that may have occured during that resync, and then manually unblock 
the agent using the Unblock button below. 
  Agent Operation completed with errors. For those targets that could not be saved, please go to the target's monitoring configuration page to save them. All 
other targets have been saved successfully. Agent has not been unblocked. 
  Error saving target rpt_cog0:oracle_database - Skipping target {rpt_cog0, oracle_database}: Missing properties - password
  这里点击GC端的的unlock按钮。
  然后重新secure一下:
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl stop agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Stopping agent ... stopped.
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl secure agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Agent is already stopped...   Done.
Securing agent...   Started.
Enter Agent Registration Password :           
Securing agent...   Successful.
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl start agent 
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Starting agent ................ started.

在GC服务器上重新Resynchronize一下, 然后点击GC端的的unlock按钮。
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl status agent
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.5.0
OMS Version       : 10.2.0.5.0
Protocol Version  : 10.2.0.5.0
Agent Home        : /opt/oracle/agentbase/agent10g
Agent binaries    : /opt/oracle/agentbase/agent10g
Agent Process ID  : 7859
Parent Process ID : 7809
Agent URL         : https://gd_rdb01:3872/emd/main/
Repository URL    : https://gd-adu03:1159/em/upload
Started at        : 2011-07-18 14:34:53
Started by user   : oraagent
Last Reload       : 2011-07-18 14:35:57
Last successful upload                       : 2011-07-18 14:42:09
Total Megabytes of XML files uploaded so far :    10.19
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    16.19%
Last successful heartbeat to OMS             : 2011-07-18 14:43:44
---------------------------------------------------------------
Agent is Running and Ready
oraagent@gd_rdb01:/opt/oracle/agentbase/agent10g/bin$ ./emctl upload 
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.  
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
参考文档:
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=799618.1
===========================End=======================================

 

参考至:http://blog.itpub.net/24930246/viewspace-1067207/

如有错误,欢迎指正

邮箱:czmcj@163.com

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics