Nginx Module Reference manual: Stub status Module (Stub status)

Source: Internet
Author: User
Keywords Nginx status status module Stub
Tags .net blog compile configuration connections get http location

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).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.