Thursday, August 2, 2018

How to resolve OMSA agent Target Interaction Manager failed at Startup

We just check the agent status and it is not running and then we tried to start it and got below notification that Target Interaction Manager failed at Startup.

$ ./emctl  status agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent is Not Running
$ ./emctl  start agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
Starting agent .............................................................................. failed.
Fatal agent error: Target Interaction Manager failed at Startup
Fatal agent error: Target Interaction Manager failed at Startup
Fatal agent error: Target Interaction Manager failed at Startup
EMAgent is Thrashing. Exiting watchdog
Consult emctl.log and emagent.nohup in: /u01/tools/agents/oracle/occ/agent12c/agent_inst/sysman/log
At this point below steps performed fixed the error and allowed the agent to startup.

Agent is down already so no need to shut it down.
./emctl clearstate agent
First time it may not succeed, that mean we need to manually clean state directory: Go to the state directory and move * to tmp.
  /tools/agents/oracle/occ/agent12c/agent_inst/sysman/emd/state  -- I just move everything to /tmp/state – we really do not need anything, but just in case we can still have it in temp.

Then run  ./emclt clearstate agent  again and this time it should show success.

Then I just startup agent -- ./emctl start agent 
it should start cleanly and show status as up and running.
$ ./emctl  status agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 12.1.0.5.0
OMS Version            : 12.1.0.5.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /u01/tools/agents/oracle/occ/agent12c/agent_inst
Agent Log Directory    : /u01/tools/agents/oracle/occ/agent12c/agent_inst/sysman/log
Agent Binaries         : /tools/agents/oracle/occ/agent12c/core/12.1.0.5.0
Agent Process ID       : 262288
Parent Process ID      : 261883
Agent URL              : https://test.com:3872/emd/main/
Local Agent URL in NAT : https://test.com:3872/emd/main/
Repository URL         : https://omsa.com:4899/empbs/upload
Started at             : 2017-03-02 02:46:56
Started by user        : omsagent
Operating System       : Linux version 2.6.39-400.277.1.el6uek.x86_64 (amd64)
Last Reload            : (none)
Last successful upload                       : 2017-03-03 16:07:53
Last attempted upload                        : 2017-03-03 16:07:53
Total Megabytes of XML files uploaded so far : 12.08
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 40.79%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2017-03-03 16:07:47
Last successful heartbeat to OMS             : 2017-03-03 16:07:47
Next scheduled heartbeat to OMS              : 2017-03-03 16:08:47
---------------------------------------------------------------
Agent is Running and Ready

No comments:

Post a Comment