Richer status module

Hi,

I’m interested in adding more stats to the stub_status module, like
number of 20x, 30x, 40x, 50x answers. The current statistics are quite
low level, and I don’t see how to add the kind of statistics that I’m
interested in.

Can someone provide some guidance here? any idea on what files should I
hack on?

Thanks!

Joaquin Cuenca Abela ha scritto:

What about parsing the log files?

Adding the statistics you want requires to patch nginx, in detail the
source file:
src/http/ngx_http_header_filter_module.c

Another solution, simpler (IMHO) is to add a custom module, registered
at the NGX_HTTP_LOG_PHASE phase.

You need to write a new stup_status module, however.

Manlio P.