Zabbix通過Nginx狀態來監控網站並發量

來源:互聯網
上載者:User

標籤:etc   監控   hand   服務   conf   res   emc   訪問   install   

一、開 啟Nginx狀態

一、安裝Nginx執行命令:yum install nginx二、啟動Nginx執行命令:systemctl start nginx三、配置Nginx開啟Status1、執行命令:vim /etc/nginx/nginx.conf,添加如下配置: 2、重啟Nginx服務:執行命令:systemctl restart nginx四、訪問Nginx配置的ngx_status頁面1、開啟瀏覽器,輸入:http://<nginx-server ip>/ngx_status這時,會返回如下內容: 2、含意說明:active connections – 活躍的串連數量1server accepts handled requests — 總共處理了2個串連 , 成功建立2次握手, 總共處理了3個請求reading — 讀取用戶端的串連數.writing — 響應資料到用戶端的數量 waiting — 開啟 keep-alive 的情況下,這個值等於 active – (reading+writing), 意思就是 Nginx 已經處理完正在等候下一次請求指令的駐留串連.

 

二、測試:

curl -s http://xxx.xxx.xxx.xxx/ngx_status|awk ‘NR==1{print $3}‘
#結果:

 

三、結果測試:

 四、其它

 

Zabbix通過Nginx狀態來監控網站並發量

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.