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.

server status

Discussion in 'General Discussion' started by bigboy36, Sep 23, 2008.

  1. bigboy36

    bigboy36 Member

    Joined:
    Jul 24, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hello i would like to show my server status on my website and billing site i have read throught the forums and cpanel doc i cant seem to be able to find how i can do that?
     
  2. nilesh_kolte

    nilesh_kolte Well-Known Member

    Joined:
    Apr 13, 2006
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Pune ,India
    cPanel Access Level:
    Root Administrator
    Apache server performance can be monitored using the Apache module mod_status. Server status is presented in an HTML page that gives the current server statistics in an easily readable form. The page can be also made automatically refresh with a compatible browser. Another page gives a simple machine-readable list of the current server state.

    The details given are:

    * The number of children serving requests.
    * The number of idle children.
    * The status of each child, the number of requests that child has performed and the total number of bytes served by the child (*)
    * A total number of accesses and byte count served (*).
    * The time the server was started/restarted and the time it has been running for
    * Averages giving the number of requests per second, the number of bytes served per second and the average number of bytes per request (*).
    * The current percentage CPU used by each child and in total by Apache (*).
    * The current hosts and requests being processed (*).

    Details marked "(*)" are only available with ExtendedStatus On.
    Activating Status Support for Apache
    To activate status reports only for browsers from the mydomain.com domain add the following code to your httpd.conf configuration file:


    <Location /server-status>
    SetHandler server-status
    Order Deny,Allow
    Deny from all
    Allow from .mydomain.com
    </Location>



    Note: The lines above may already exist in your default httpd.conf file. If this is the case, you can simply uncomment this section to use the existing configuration.

    The server statistics can now be accessed by using a Web browser. To access the page http://mydomain.com/server-status.
     
  3. bigboy36

    bigboy36 Member

    Joined:
    Jul 24, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    ok

    i have this line in here in the httpd
    <Location /whm-server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Location>

    when i go to view the status i have http in the green ftp in the green and pop3 in the green server load ans uptime are both un available.and i did want the hole server stats in the whm client any other ideas?
     
Loading...

Share This Page