Results 1 to 10 of 10
  1. #1

    monitoring apache connections?

    whats the easiest way to monitor the number of apache connections?
    http://limehosting.com

  2. #2
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    8,910
    What do you mean exactly, like how many IP addresses are connected to Apache ... or be more specific?
    Patrick William | RACK911 Labs | Software Security Auditing
    400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com

    www.HostingSecList.com - Security notices for the hosting community.

  3. #3
    well there a couple of things i want to do.. but i would like to know at any given time how many apache connections are open.

    also is there anyway to determine the current traffic speed would be? like if the server is using 2.3 mbps ?
    http://limehosting.com

  4. #4
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    8,910
    Most control panels, such as cPanel, come with the option to view Apache's server-status but if you're not using a control panel take a look at the following link:

    http://httpd.apache.org/docs/2.0/mod/mod_status.html

    If you configure Apache for mod_status you can view how many connections are open, the bandwidth being used, and a bunch of other neat statistics.

    Demo:

    http://httpd.apache.org/server-status
    Patrick William | RACK911 Labs | Software Security Auditing
    400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com

    www.HostingSecList.com - Security notices for the hosting community.

  5. #5
    server-status does give me a lot of the information i want. but is there a way to get that data from the command line?
    http://limehosting.com

  6. #6
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    8,910
    Quote Originally Posted by joeshacks View Post
    server-status does give me a lot of the information i want. but is there a way to get that data from the command line?
    If you're using Apache2, then apache-top would be useful as it's interactive and would obviously update in real time:

    Link:
    http://www.fr3nd.net/projects/apache-top/

    If you're using Apache1, then the only thing that comes to mind is to call the server-status manually via the following command:

    /usr/local/apache/bin/apachectl status
    Patrick William | RACK911 Labs | Software Security Auditing
    400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com

    www.HostingSecList.com - Security notices for the hosting community.

  7. #7
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    To see number of IP connections and IPs connected to port 80, use the following command.

    Code:
    netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  8. #8
    thanks! thats what i was looking for..
    http://limehosting.com

  9. #9
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    Some more commands.

    To see connections to your server IP to port 80.

    Code:
    tcpdump -nnqt dst host server_IP and tcp dst port 80
    tcpdump -npi eth0 port http
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  10. #10
    Join Date
    Nov 2007
    Location
    Earth
    Posts
    289
    And you can use the simple "ifconfig" command to check the traffic of your server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •