Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

show httpd connections

Discussion in 'General Discussion' started by Valuehosted, Aug 15, 2008.

  1. Valuehosted

    Valuehosted Well-Known Member

    Joined:
    Dec 12, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Sweden
    Is there any scripts or command that I can use to display all httpd connections to my server, displaying the IPs and how many connections per IP?

    What I am looking for is something similar to WHM's apache status but have connections grouped per ip.

    Thank you,

    Tony
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 Valuehosted, Aug 15, 2008
    Last edited: Aug 15, 2008
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,161
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    This should work I would think:

    Code:
    netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr |more
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Valuehosted

    Valuehosted Well-Known Member

    Joined:
    Dec 12, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Sweden
    wow - thank you - I appreciate that a lot!

    Thank you!

    --Tone
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice