Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
Here's a nicer sample of what you're asking for (but alas, the code is Apache): exchange.munin-monitoring.org/plugins/http_status/details –  medina Aug 10 '10 at 14:12

1 Answer 1

You have to parse the access log for this.

share|improve this answer
1  
And this task may be simplified by defining your own log format. –  minaev Aug 11 '10 at 9:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.