Home arrow Journal arrow Monitor your Apache HTTP Server with mod_status module
Monitor your Apache HTTP Server with mod_status module PDF
Wednesday, 18 April 2012
If you want to know detailed informations/status/statistics about your Apache HTTP server just add/uncomment the following lines in /usr/local/etc/apache22/httpd.conf file:

/usr/local/etc/apache22/httpd.conf
# ... add/uncomment next lines

ExtendedStatus On
<Location /server-status>
   SetHandler server-status
   Order Deny,Allow
   Deny from all
   Allow from all
</Location>

Then restart your web server:

  /usr/local/etc/rc.d/apache22 restart

Then access your web server to see the status from your Web browser: http://yourserver.com/server-status. You will see something like this:

output of mod_status Apache module
Apache Server Status for 10.0.0.7

Server Version: Apache/2.2.22 (FreeBSD) PHP/5.3.10 with Suhosin-Patch mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2
Server Built: Mar 10 2012 18:58:18

Current Time: Wednesday, 18-Apr-2012 11:44:27 EEST
Restart Time: Wednesday, 18-Apr-2012 11:44:06 EEST
Parent Server Generation: 0
Server uptime: 21 seconds
Total accesses: 56 - Total Traffic: 126 kB
CPU Usage: u0 s.0234375 cu.015625 cs0 - .186% CPU load
2.67 requests/sec - 6.0 kB/second - 2304 B/request
2 requests currently being processed, 5 idle workers

W____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-0  37557  38/38/38  W   0.08  0  0  76.1  0.07  0.07   10.0.0.7  www.testscript.com  GET /dw_old/status.cgi HTTP/1.1
5-0  37566  18/18/18  W   0.02  0  0  50.0  0.05  0.05   10.0.0.7  www.testscript.com  GET /server-status HTTP/1.1
Srv  Child Server number - generation
PID  OS process ID
Acc  Number 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
Slot  Total megabytes transferred this slot
SSL/TLS Session Cache Status:


Last Updated ( Wednesday, 18 April 2012 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?