ChsStubStatusModule
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]
[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