EM 12c : Agent Status Shows Unreachable. EMD_URL Mismatch in Repository. 'unable to connect http:/agentname:port/emd/main/' Reported on Resync (Doc ID 1595044.1)

Last updated on SEPTEMBER 12, 2016

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Symptoms

Agent is shown Unreachable in the console

$AGENT_INST/bin/emctl status agent

does not indicate failure

Oracle Enterprise Manager Cloud Control 12c Release 2  
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.2.0
OMS Version       : 12.1.0.2.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /usr/local/oracle/agent/agent_inst
Agent Binaries    : /usr/local/oracle/agent/core/12.1.0.2.0
Agent Process ID  : 29675
Parent Process ID : 29623
Agent URL         : https://ukne32sr:1830/emd/main/
Repository URL    : https://oms1.oracle.com:4899/empbs/upload
Started at        : 2013-12-27 12:33:01
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2014-01-21 11:33:05
Last attempted upload                        : 2014-01-21 11:33:05
Total Megabytes of XML files uploaded so far : 24.28
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 74.92%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2014-01-21 11:32:26
Last successful heartbeat to OMS             : 2014-01-21 11:32:26
Next scheduled heartbeat to OMS              : 2014-01-21 11:33:26

---------------------------------------------------------------
Agent is Running and Ready

 

From console 'Agent Resync' operation fails with message 'unable to connect 'http:/agentname:port/emd/main/'

Verify the agent EMD_URL value

  

SQL>select ENTITY_NAME, ENTITY_TYPE, MANAGE_STATUS, PROMOTE_STATUS, EMD_URL from EM_MANAGEABLE_ENTITIES where ENTITY_TYPE in ('host','oracle_emd') and ENTITY_NAME like '%ukne32sr%';

ENTITY_NAME                    ENTITY_TYPE                    MANAGE_STATUS      PROMOTE_STATUS                  EMD_URL
-----------------------------------------------------------------------------------------------------------------------------------
ukne32sr                       host                               2                3                       http://ukne32sr:1830/emd/main/
ukne32sr:1830                oracle_emd                         2                3                       http://ukne32sr:1830/emd/main/

  

 
EM_MANAGEABLE_ENTITIES  and emctl status agent shows difference EMD_URL  for host and agent targets.

Example , protocol (http) mismatch  or agent hostname mismatch or "/" sign mismatch in URL or extra space in the URL

OR

$/AGENT_INST/bin/emctl status agent

fails with  null message

Oracle Enterprise Manager Cloud Control 12c Release 2  
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
null

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms