Apache Server Status mod_status

Apache Server Status mod_status

Monitoring apache activity

El monitoreo de servidores apache.

Ejemplo real de apache.org : http://www.apache.org/server-status


 1. activar el modulo

LoadModule status_module modules/mod_status.so

2. Activar ExtendedStatus 

ExtendedStatus On

3. agregar

     SetHandler server-status
    Order allow,deny
    Allow from all

Reiniciar apache, y listo entramos a localhost/tools/status y deberia salir la lista completa , un buen reporte de lo que pasa en tu servidor.

Algunos comandos utiles son

elinks http://localhost/server-status?refresh=2


 Problemas 404 es que debes de poner alguns reglas sobre quien puede entrar y quien no-

Successful Client Requests
200 OK
201 Created
202 Accepted
203 Non-Authorative Information
204 No Content
205 Reset Content
206 Partial Content
Client Request Redirected
300 Multiple Choices
301 Moved Permanently
302 Moved Temporarily
303 See Other
304 Not Modified
305 Use Proxy
Client Request Errors
400 Bad Request
401 Authorization Required
402 Payment Required (not used yet)
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable (encoding)
407 Proxy Authentication Required
408 Request Timed Out
409 Conflicting Request
410 Gone
411 Content Length Required
412 Precondition Failed
413 Request Entity Too Long
414 Request URI Too Long
415 Unsupported Media Type
Server Errors
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported


0-14 Srv

The ID of the child process and its generation. The generation increases each time a child process is restarted, whether due to a server-restart or a limit placed on the number of processes a child is allowed to handle. See the MaxRequestsPerChild directive.
29987 PID

The child’s process ID.
0/24/24 Acc

The first number in this trio is the number of accesses or requests using this connection. For non-KeepAlive connections, this will be 0 since each request makes its own connection and so is always the first (and last). The second is the number of requests handled thus far by this child. The third is the number of requests handled by this slot; the child may have come and gone, its slot taken by another.
W Mode

The child’s mode of operation; one of the following possibilities: 

“_” Waiting for Connection, “S” Starting up,
“R” Reading Request, “W” Sending Reply,
 ”K” KeepAlive (read),
“D” DNS Lookup, “L” Logging, “G” Gracefully finishing,
“.” Open slot with no current process





CPU SS Req Conn Child Slot

Some of the less useful bits and pieces…  

CPU: The child’s CPU usage in number of seconds.

SS: Seconds elapsed since the beginning of the request.

Req: Milliseconds taken to process the request.

Conn: Kilobytes transferred across this connection.

Child: Megabytes transferred by this child process.

Slot: Megabytes transferred by this slot, across children.
www.mydomain.net VHost

Perhaps your server hosts multiple virtual domains; how would you determine which page is being requested by GET /index.html?. The VHost column helps you sort out which request is coming to which virtual host — in this example, www.mydomain.net.
GET /server-status HTTP/1.0 Request

This particular hit is my request for server-status. The GET bit indicates a simple request for a document (as opposed to sending data to the server using POST). The browser (in this case the Unix command-line wget program) is using HTTP version 1.0. 

For more on HTTP, see my earlier HTTP Wrangler column, “Introducing Apache.”

1 pensamientos:

Anonymous said...

Fantastiс poѕt but I was wantіng to
know if you cοuld wrіte a litte moгe οn this tορic?
I'd be very grateful if you could elaborate a little bit more. Many thanks!

Here is my website :: short term car insurance

Post a Comment