Error:
bash-3.00$ ./emctl start agent
Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Starting agent ....... failed.
Failed to start HTTP listener.
Consult the log files in: ...../OracleHomes/agent10g/sysman/log

Solution:
To prevent the agent from binding to all IP's in the machine:

- Go to AGENT_HOME/sysman/config/emd.properties
Modify this parameter :

AgentListenOnAllNICs=TRUE

To

AgentListenOnAllNICs=FALSE

- Startup the agents now.


If it doesn't work for you, you should also try to change the port in emd.properties file, EMD_URL parameter.

Also look at the trace file at $AGENT_HOME/sysman/log/emagent.trc , if you have an error like "ERROR http: snmehl_connect: failed to create socket: Too many open files (error = 24)" you should check running agent processes (ps -ef |grep agent), kill them and restart agent... If the agent starts but after a while stops itself again, this may be caused by operating system running out of open file handles limit. Check out the kernel which limits the max open file number for a process for your OS.

Description for these parameters:
AgentListenOnAllNIC: Whether the EMD should listen on all NICs on the current host (the default) or just the NIC associated with the hostname in EMD_URL
EMD_URL: EMD main servlet URL

22 Responses so far.

  1. Anonymous says:

    Grid Control Agent "Failed to start HTTP listener"

    I have faced the same error and this was helpful.

    Thanks
    Mukarram Khan

  2. Anonymous says:

    Very good article. I could able to solve the issue.

    Thanks
    Srinivas

  3. You're welcome;
    i'm glad your problems were resolved.

  4. Anonymous says:

    Very helpful. By setting AgentListenOnAllNICs=TRUE
    I resolved my problem. Can you explain why it work and what could happened?

    Thanks!

  5. Description for AgentListenOnAllNIC:
    Whether the EMD should listen on all NICs on the current host (the default) or just the NIC associated with the hostname in EMD_URL

    So it seems in your case, the IP for the hostname in EMD_URL didn't work properly to connect the server but another NIC's IP has succeed.. If so, setting the hostname in the EMD_URL parameter in emd.properties file properly may be better.

  6. Unknown says:

    Thank you this was very helpful. I would only suggest to reverse the two options, start with finding and killing any remnant agent processes prior to editing the files. That worked for me and I did not need to edit the indicated files.

  7. Unknown says:

    Thanks, it is very helpful.
    I am having issue with the agent starts and stop it self again after several days.
    Could you please suggest me what is the max number of open files we should set in the kernel?

    Thanks

  8. Anonymous says:

    Thank you, it did help me to solve the problem I encountered.

    Cheers

  9. Thank,

    This guide me solve this error.

    Louis Nguyen.

  10. Anonymous says:

    Thank you buddy!!!

  11. Anonymous says:

    Works for me too!!! perfect!

  12. Anonymous says:

    Great Post
    Solved the issue in minutes which i have been working for hours

  13. siva says:

    Thank you very much for this post... it was saved my time and tension. It is 100% working....thank u buddy..

  14. Satish says:

    Hey Really Thanks for sharing the best information regarding category, hope you will write more great blogs.

    Oracle Fusion HCM Online Training

  15. Very interesting blog, Thank you for sharing such a nice and interesting blog and really very helpful article

    Oracle Fusion Financials Online Training

  16. Thank you for sharing such a nice and interesting blog with us. I have seen that all will say the same thing repeatedly. But in your blog, I had a chance to get some useful and unique information.
    Oracle Fusion SCM Online Training

  17. Very interesting blog Awesome post. your article is really informative and helpful for me and other bloggers too
    Oracle Fusion HCM Online Training

  18. Thank you for sharing such a nice and interesting blog and really very helpful article
    Oracle Fusion Financials Online Training

  19. Such a nice blog, I really like what you write in this blog, I also have some relevant information about if you want more information.

    Oracle Fusion Financials Online Training
    Oracle Fusion SCM Online Training
    Workday Online Training

  20. Vina says:

    thank you for sharing this information with us I am glad to be here and read this information is really very helpful for me

    Skytorrent proxy List
    Worldwidetorrent proxy
    Kickasstorrent proxy
    torrenthoud proxy

Powered by Blogger.

Page Views

- Copyright © Emre Baransel - Oracle Blog -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -