jeudi 16 juin 2011

HTTP - Server Status

Mise en place de la page de Server-status

Configuration au niveau du fichier httpd.conf

LoadModule status_module modules/mod_status.so

<IfModule mod_status.c>
ExtendedStatus On
</IfModule>

# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Allow from all
</Location>


+ un arrêt/relance

Accès à la page de contrôle:

    http://servername/server-status

ou
    http://servername/server-status?refresh=N avec un rafraichissement de la page toutes les N secondes

Contenu page

Current Time: Wednesday, 17-Mar-2010 15:19:12 CET
Restart Time: Wednesday, 17-Mar-2010 15:16:55 CET
Parent Server Generation: 7
Server uptime: 2 minutes 17 seconds
Total accesses: 4 - Total Traffic: 8 kB
CPU Usage: u0 s0 cu0 cs0
.0292 requests/sec - 59 B/second - 2048 B/request
1 requests currently being processed, 49 idle workers

W_________________________________________________..............
................................................................
................................................................
................................................................
../..
................................................................
................................................................
................................................................
................................................................
................................................................

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

Srv    PID    Acc    M    CPU     SS    Req    Conn    Child    Slot    Client    VHost    Request
0-7    18632    1/1/1    W     0.00    0    0    0.0    0.00    0.00     10.2.54.16    iprefon.re.cdc.fr    GET /server-status HTTP/1.1
0-7    18632    0/2/2    _     0.00    35    0    0.0    0.00    0.00     10.2.54.16    iprefon.re.cdc.fr    GET /favicon.ico HTTP/1.1
1-7    18633    0/1/1    _     0.00    103    0    0.0    0.00    0.00     127.0.0.1    rldeva2.re.cdc.fr    GET /server-status HTTP/1.0
Srv    Child Server number - generation
PID    OS process ID
Acc    Number of accesses this connection / this child / this slot
M    Mode of operation
Module    Module active
CPU    CPU usage, number of seconds
SS    Seconds since beginning of most recent request
Req    Milliseconds required to process most recent request
Conn    Kilobytes transferred this connection
Child    Megabytes transferred this child
Slot    Total megabytes transferred this slot
IBM_HTTP_Server Server at rldeva2.re.cdc.fr Port 80

Aucun commentaire:

Enregistrer un commentaire