1. 程式人生 > >如何用zabbix的web檢測進行對網站時候線上進行檢測!

如何用zabbix的web檢測進行對網站時候線上進行檢測!

zabbix提供了web監測功能,監控到站點的響應時間,還可以根據站點返回的狀態碼,或者響應時間做報警,列入服務保證官網確打不開等現象。

官網地址:https://www.zabbix.com/documentation/3.2/manual/web_monitoring

1、Configuration——Hosts——Web

如何用zabbix的web檢測進行對網站時候線上進行檢測!

2、右上角Create Web scenario

如何用zabbix的web檢測進行對網站時候線上進行檢測!

3、設定Scenario

如何用zabbix的web檢測進行對網站時候線上進行檢測!

4、設定Steps

如何用zabbix的web檢測進行對網站時候線上進行檢測!

5、 Name(自定義名稱)。URL(需要監控的url),Timeout為超時不相應則觸發。

如何用zabbix的web檢測進行對網站時候線上進行檢測!

6、新增

如何用zabbix的web檢測進行對網站時候線上進行檢測!
7.Status為Enabled則成功

如何用zabbix的web檢測進行對網站時候線上進行檢測!

8、設定觸發器

如何用zabbix的web檢測進行對網站時候線上進行檢測!

9、右上角Creare Triggers
如何用zabbix的web檢測進行對網站時候線上進行檢測!

9、設定觸發器,Epression為表示式點選右邊Add
如何用zabbix的web檢測進行對網站時候線上進行檢測!

10、Item選擇有圖所示,Fuction為最近一個值為不N,N為狀態碼,Insert

如何用zabbix的web檢測進行對網站時候線上進行檢測!

11、Monitoring——Web檢視,已經監控到URL狀態。
如何用zabbix的web檢測進行對網站時候線上進行檢測!

12、測試關閉tomcat程序
如何用zabbix的web檢測進行對網站時候線上進行檢測!

13、再次檢視zabbix,已經觸發報警

如何用zabbix的web檢測進行對網站時候線上進行檢測!

如何用zabbix的web檢測進行對網站時候線上進行檢測!