If you want to use these modules, you must specify the relevant compilation parameters at compile time.
 
This module can get some Nginx running status.
To use this module, you must specify the following compilation parameters at compile time:
--with-http_stub_status_module
Sample configuration:
Location/nginx_status {# copied from Http://blog.kovyrin.net/2006/04/29/monitoring-nginx-with-rrdtool/stub_status On; Access_log off; Allow SOME. IP. ADD. RESS; Deny all;}
Instructions
 
Stub_status
 
Syntax: Stub_status on
Default value: None
Working with Fields: location
Enable stateful monitoring in this location.
This module generates a plain text message similar to the MATHOPD status page:
Active Connections:291server accepts handled requests 16630948 16630948 31070465reading:6 writing:179 waiting:106
Active connections– all open connections, including those connected to the back-end server.
The server accepts handled Requests–nginx has accepted and processed 16,630,948 connections, 31,070,465 requests (1.8 requests per connection).
reading– the request header being read.
writing– the request body being read, the request being processed, or the reply being written.
The number of waiting–keepalive connections equals active-(reading + writing).