FAQ

Page Discussion Edit History

ChsStubStatusModule

(Redirected from NginxChsStubStatusModule)

Contents

[edit] ngx_http_stub_status_module

杩欎釜妯″潡鑳藉鑾峰彇Nginx鑷笂娆″惎鍔ㄤ互鏉ョ殑宸ヤ綔鐘舵

姝ゆā鍧楅潪鏍稿績妯″潡锛岄渶瑕佸湪缂栬瘧鐨勬椂鍊欐墜鍔ㄦ坊鍔犵紪璇戝弬鏁 --with-http_stub_status_module

__閰嶇疆璇存槑__

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;
}

[edit] 鎸囦护

  • [#stub_status stub_status]

Template:Anchor

[edit] stub_status

璇硶: stub_status on

榛樿鍊: None

浣滅敤鍩: location

鍒涘缓涓涓 location 鍖哄煙鍚敤 stub_status

"stub status" 妯″潡杩斿洖鐨勭姸鎬佷俊鎭窡 mathopd's 鐨勭姸鎬佷俊鎭緢鐩镐技. 杩斿洖鐨勭姸鎬佷俊鎭涓嬶細

Active connections: 291
server accepts handled requests
: 16630948 16630948 31070465
Reading: 6 Writing: 179 Waiting: 106

active connections -- 瀵瑰悗绔彂璧风殑娲诲姩杩炴帴鏁

server accepts handled requests -- nginx 鎬诲叡澶勭悊浜 16630948 涓繛鎺, 鎴愬姛鍒涘缓 16630948 娆℃彙鎵 (璇佹槑涓棿娌℃湁澶辫触鐨), 鎬诲叡澶勭悊浜 31070465 涓姹 (骞冲潎姣忔鎻℃墜澶勭悊浜 1.8涓暟鎹姹)

reading -- nginx 璇诲彇鍒板鎴风鐨凥eader淇℃伅鏁

writing -- nginx 杩斿洖缁欏鎴风鐨凥eader淇℃伅鏁

waiting -- 寮鍚 keep-alive 鐨勬儏鍐典笅锛岃繖涓肩瓑浜 active - (reading + writing)锛屾剰鎬濆氨鏄疦ginx璇村凡缁忓鐞嗗畬姝e湪绛夊欎笅涓娆¤姹傛寚浠ょ殑椹荤暀杩炴帴

[edit] Examples

http://blog.kovyrin.net/2006/04/29/monitoring-nginx-with-rrdtool/
http://dev.2xlp.com/svn/nginx_config/trunk/conf/_rrd/__README__.txt