Hi MAA,
I have been monitoring nginx with the status page for some time, but have had to patch the source code to make it PRTG compatible. See the patch below, then use a HTTP Content sensor with 6 channels.
--- src/http/modules/ngx_http_stub_status_module.c 2013-05-06 11:26:50.000000000 +0100
+++ src/http/modules/ngx_http_stub_status_module.cmh 2013-06-14 14:51:05.303729784 +0100
@@ -131,14 +131,14 @@
wr = *ngx_stat_writing;
wa = *ngx_stat_waiting;
- b->last = ngx_sprintf(b->last, "Active connections: %uA \n", ac);
+ b->last = ngx_sprintf(b->last, "Active connections: [%uA] \n", ac);
b->last = ngx_cpymem(b->last, "server accepts handled requests\n",
sizeof("server accepts handled requests\n") - 1);
- b->last = ngx_sprintf(b->last, " %uA %uA %uA \n", ap, hn, rq);
+ b->last = ngx_sprintf(b->last, " [%uA] [%uA] [%uA] \n", ap, hn, rq);
- b->last = ngx_sprintf(b->last, "Reading: %uA Writing: %uA Waiting: %uA \n",
+ b->last = ngx_sprintf(b->last, "Reading: [%uA] Writing: [%uA] Waiting: [%uA] \n",
rd, wr, wa);
r->headers_out.status = NGX_HTTP_OK;
Add comment