35 ngx_http_stub_status_add_variables,
51 &ngx_http_stub_status_module_ctx,
52 ngx_http_status_commands,
67 {
ngx_string(
"connections_active"), NULL, ngx_http_stub_status_variable,
70 {
ngx_string(
"connections_reading"), NULL, ngx_http_stub_status_variable,
73 {
ngx_string(
"connections_writing"), NULL, ngx_http_stub_status_variable,
76 {
ngx_string(
"connections_waiting"), NULL, ngx_http_stub_status_variable,
114 +
sizeof(
"server accepts handled requests\n") - 1
126 ap = *ngx_stat_accepted;
127 hn = *ngx_stat_handled;
128 ac = *ngx_stat_active;
129 rq = *ngx_stat_requests;
130 rd = *ngx_stat_reading;
131 wr = *ngx_stat_writing;
132 wa = *ngx_stat_waiting;
134 b->last =
ngx_sprintf(b->last,
"Active connections: %uA \n", ac);
136 b->last =
ngx_cpymem(b->last,
"server accepts handled requests\n",
137 sizeof(
"server accepts handled requests\n") - 1);
139 b->last =
ngx_sprintf(b->last,
" %uA %uA %uA \n", ap, hn, rq);
141 b->last =
ngx_sprintf(b->last,
"Reading: %uA Writing: %uA Waiting: %uA \n",
147 b->last_buf = (r == r->
main) ? 1 : 0;
173 value = *ngx_stat_active;
177 value = *ngx_stat_reading;
181 value = *ngx_stat_writing;
185 value = *ngx_stat_waiting;
205 ngx_http_stub_status_add_variables(
ngx_conf_t *cf)
209 for (v = ngx_http_stub_status_vars; v->
name.
len; v++) {
228 clcf->
handler = ngx_http_status_handler;