The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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
     
    #1 Valuehosted, Aug 15, 2008
    Last edited: Aug 15, 2008
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    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
     
  3. Valuehosted

    Valuehosted Well-Known Member

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

    Thank you!

    --Tone
     
Loading...

Share This Page