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.

Concurrent Visitors

Discussion in 'General Discussion' started by clarocque, Sep 11, 2006.

  1. clarocque

    clarocque Member

    Joined:
    Mar 1, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Can enyone tell me a good ssh command or some easy way to see how many concurrent users are visitng sites on the server at any given time?

    Chris
     
  2. bhd

    bhd Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    JNB ZA
    cPanel Access Level:
    Root Administrator
    A quick way to check is something like

    netstat -an | grep :80 | sort

    or

    netstat -an | grep EST

    The fisrt will show all HTTP connections sorted by IP regardless of state. The second, all established connections regardless of port number.
     
  3. clarocque

    clarocque Member

    Joined:
    Mar 1, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Thanks - count

    Thanks for the info bhd

    This will retunr a list correct/ Is there a way to get the server to count them?
     
  4. stephan

    stephan Registered

    Joined:
    Feb 6, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    netstat -an | grep -c :80 might be good for counting them.

    Also, if you use "iptraf", you can see current traffic by port number, network interface etc.

    yum install iptraf if you have CentOS 4 (and maybe others too)
     
Loading...

Share This Page