How can I create a graph of Nginx responses by HTTP status code?

Posted by rmh on Server Fault See other posts from Server Fault or by rmh
Published on 2010-08-10T14:05:37Z Indexed on 2011/06/23 0:24 UTC
Read the original article Hit count: 500

Filed under:
|

I'm looking to create a graph somewhat similar to this:

alt text

But instead of graphing requests, graph responses, with a line for each HTTP response code (200 OK, 404 Not Found, 500 Server Error, etc).

Creating the graph isn't the issue (use RRDtool, Server Density or something similar), but how can I best retrieve this information from Nginx?

Unfortunately, this data isn't available on the page generated by NginxHttpStubStatusModule. If it was, this would be pretty easy.

© Server Fault or respective owner

Related posts about webserver

Related posts about nginx