Das Modul mod_status bietet einen Handler, der Informationen zur aktuellen Auslastung des
Servers anbietet. Dieser kann über eine "Directory" oder "Location" Direktive
an eine URL
gebunden und von außen abgefragt werden. Der Zugriff sollte aber immer eingeschränkt
werden. Ein Beispiel für die Einbindung des Handlers:
<Location /server-status>
SetHandler
server-status
Order
deny,allow
Deny
from all
Allow
from localhost
</Location>
Mit Hilfe der Anweisung
ExtendedStatus
On
wird der Output noch umfangreicher:
Apache Server Status for localhost
Server Version: Apache/2.0.46 (Unix) DAV/2
Server Built: Jun 5 2003 16:49:56
Current Time: Saturday, 07-Jun-2003 19:40:45 MEST
Restart Time: Saturday, 07-Jun-2003 19:40:24 MEST
Parent Server Generation: 0
Server uptime: 21 seconds
Total accesses: 10 - Total Traffic: 50 kB
CPU Usage: u0 s000 cu0 cs0 - 0% CPU load
0 requests/sec - 2438 B/second - 0.0 kB/request
2 requests currently being processed, 5 idle workers
__W_K__.........................................................
................................................................
................................................................
................................................................
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 AccM CPU SS Req Conn Child SlotClient VHost Request
2-0 3374 6/6/6 W 0.00 0 0 0.0 0.00 0.00
192.168.178.2 jaracopan.work.mijo.comGET /server-status/
HTTP/1.1
4-0 3376 4/4/4 K 0.00 7 0 0.0 0.00 0.00
192.168.178.2 jaracopan.work.mijo.comGET /manual/images/up.gif
HTTP/1.1
Srv Child Server number - generation
PID OS process ID
AccNumber of accesses this connection / this child / this slot
M Mode of operation
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
SlotTotal megabytes transferred this slot
Apache/2.0.46 (Unix) DAV/2 Server at localhost Port 80