How to FIX “Metric Collection Error” {Agent Status not UP in Console}

A Common Issue which everyone usually faces, while new installation of Agent on any server.  Agent is up and running but still status is not up in EM Console show “METRIC COLLECTION ERROR”.

Check on the server and perform following steps to resolve this Issue.

D:\oracle\product\agent12c\agent_inst\bin>emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
—————————————————————
Agent Version : 12.1.0.4.0
OMS Version : 12.1.0.4.0
Protocol Version : 12.1.0.1.0
Agent Home : D:/oracle/product/agent12c/agent_inst
Agent Log Directory : D:/oracle/product/agent12c/agent_inst\sysman\log
Agent Binaries : D:\oracle\product\agent12c\core\12.1.0.4.0
Agent Process ID : 5632
Parent Process ID : 10516
Agent URL : https://HANXXX.TEST.com:3872/emd/main/
Local Agent URL in NAT : https://HANXXX.TEST.com:3872/emd/main/
Repository URL : https://HANXXX.TEST.com:4904/empbs/upload

Started at : 2015-05-13 18:35:17
Started by user : HANXXX3$
Operating System : Windows version 6.1 (amd64)
Last Reload : (none)
Last successful upload : 2015-05-13 18:35:45
Last attempted upload : 2015-05-13 18:35:45
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 50.84%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2015-05-14 14:17:49
Last successful heartbeat to OMS : 2015-05-14 14:17:49
Next scheduled heartbeat to OMS : 2015-05-14 14:18:49

—————————————————————
Agent is Running and Ready

D:\oracle\product\agent12c\agent_inst\bin>emctl upload agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
—————————————————————
EMD upload completed successfully

D:\oracle\product\agent12c\agent_inst\bin>emctl verifykey
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.

—————————————————–
verifykey: Successfully Completed communication with agent
EMD pingOMS completed successfully

—————————————————–

======================================================
But Still Agent Status was not showing UP in Console.
=====================================================

d:\oracle\product\agent12c\agent_inst\bin>emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
The Oracleagent12c1Agent service is stopping………….
The Oracleagent12c1Agent service was stopped successfully.

Deleted files from $ORACLE_HOME/sysman/emd/state and $ORACLE_HOME/sysman/emd/upload
D:\oracle\product\agent12c\agent_inst\bin>emctl clearstate agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
EMD clearstate completed successfully

———————————————

D:\oracle\product\agent12c\agent_inst\bin>emctl secure agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
Agent successfully stopped… Done.
Securing agent… Started.
Enter Agent Registration Password :
Agent successfully restarted… Done.
Securing agent… Successful.

——————————————-
D:\oracle\product\agent12c\agent_inst\bin>emctl config agent addinternaltargets
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.

——————————————-
D:\oracle\product\agent12c\agent_inst\bin>emctl config agent listtargets
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
[agent12c1_2_HANXXX.TEST.com, oracle_home]
[HANXXX.TEST.com, host]
[HANXXX.TEST.com:3872, oracle_emd]

——————————————-
D:\oracle\product\agent12c\agent_inst\bin>emctl upload agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
—————————————————————
EMD upload completed successfully

———————————————
D:\oracle\product\agent12c\agent_inst\bin>emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
—————————————————————
Agent Version : 12.1.0.4.0
OMS Version : 12.1.0.4.0
Protocol Version : 12.1.0.1.0
Agent Home : D:/oracle/product/agent12c/agent_inst
Agent Log Directory : D:/oracle/product/agent12c/agent_inst\sysman\log
Agent Binaries : D:\oracle\product\agent12c\core\12.1.0.4.0
Agent Process ID : 7188
Parent Process ID : 3536
Agent URL : https://HANXXX.TEST.com:3872/emd/main/
Local Agent URL in NAT : https://HANXXX.TEST.com:3872/emd/main/
Repository URL : https://HANXXX.TEST.com:4904/empbs/upload

Started at : 2015-05-14 15:27:47
Started by user : HANXXX3$
Operating System : Windows version 6.1 (amd64)
Last Reload : (none)
Last successful upload : 2015-05-14 15:32:38
Last attempted upload : 2015-05-14 15:32:38
Total Megabytes of XML files uploaded so far : 0.12
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 50.81%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2015-05-14 15:34:56
Last successful heartbeat to OMS : 2015-05-14 15:34:56
Next scheduled heartbeat to OMS : 2015-05-14 15:35:56

—————————————————————
Agent is Running and Ready

D:\oracle\product\agent12c\agent_inst\bin>

Finally The Agent was having Status up in Console.

Thanks

Deepak

Advertisements

14 thoughts on “How to FIX “Metric Collection Error” {Agent Status not UP in Console}

  1. Thanks, great help. The agent port was restricted when I did my agent install resulting in the agent showing with a metric error/timed out. Once the port was opened, this procedure got it going.

    Like

    1. Happy to know it help you. I have moved all my Blog to my new website “emdeepaksharme.com”. You can follow all new post over there.

      Regards
      Deepak

      Like

    1. Thanks Sandhya, happy to know it help you. I have moved all my Blog to my new website “emdeepaksharme.com”. You can follow all new post over there.

      Regards
      Deepak

      Like

    1. I am glad, it helped you. Also thanks for the suggestions, I’ll make sure to verify and make the required changes.
      For more updates please visit my new website emdeeepaksharma.com

      Regards
      ADDKS

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s