Zabbix搭建笔记[4]--web监控配置

来源:互联网 发布:虚拟机安装mac dmg 编辑:程序博客网 时间:2024/06/01 08:09


针对Web应用,zabbix专门提供了web监控来对其进行处理,我们已经在Zabbix Server上面打好了web页面,所以就利用ZabbixHomePage来做一个小的演示。

 

首先在主机中找到Zabbix server,点击web

ZABBIX Monitoring Inventory Reports Contiguration Administration Hostgroups Templates Hosts Maintenance Actons Eventcorrelaton Discovery IT services Hosts Name A cent0S69 cent0S73 Win2012R2 Zabbix server Applications Applications 1 Applications 1 Applications 13 Applications 11 Items 2 Items 2 Items 127 Items 81 Triggers Triggers Triggers Triggers 61 Triggers 49 Graphs Graphs 1 Graphs 1 Graphs 28 Graphs 14 Name Discovery Discovery Discovery Discovery 3 Discovery 2 Web Web Web Web Web

 

点击Create web scenario

: server Create web scenario

 

填写Scenario的基本参数:

Web monitoring All hosts I Zabbix server Enabled Scenario Steps Authentication SNMP JMX IPMI Applications Il Items 81 Triggers 4. Graphs 1 Name Application New application update interval (in sec) Attempts Agent HTTP proxy Variables Headers Enabled ZabbixSewerHomePage Zabbix server Zabbix http]/[userl:password]@]proxyexample.com[:portl Update Clone Clear history and trends

 

接着在Steps中我们配置两个监控项:

Scenario Steps Authentication Steps 2: Name Homepage HomepageLogin Timeout 15 sec 15 sec URL http://13g.219_10460/zabbiWindex_php http://13g.219_10460/zabbiWindex_php Required 200 200 Update Clone Clear history and trends

 

HomePage页面监控项:

Name URL Variables Follow redirects Retrieve only headers Timeout Required string Required status codes Homepage httpJ/13g21g.104.50/zabbiyJindex.php 200 update Cancel

 

HomePageLogin页面配置项(这里会验证用户名和密码登陆,对于需要登录的页面就可以参考这个配置):

Name URL Post Variables Headers Follow redirects Retrieve only headers Timeout Required string Required status codes Homepagel_ogin httpJ/13g21g.104_50/zabbiyJindex.php 1 & enter=Siqn+in {user}=Admin {password}=zabbix Accept teWhtml, applicationNhtml*xmI image,EL Accept-Language en-Egmg=0 user-Agent MozilIa\5.O (Windows NT 10.0; WOW64; Tridentn_o; rv:llß) 'ke Gecko Content-Type: applicationff-w,w-form-urlencoded Accept-Encoding: gag deflate Connection: Keep-Alive 200

 

配置完成后,就可以在Monitoring->Web中看到我们配置的Web监控了:

ZABBIX Monitoring Inventory Reports Dashboard Problems Overview Web Latest data Configuration Administration Triggers Graphs Screens Maps a Share Discovery IT services oanza Details of web scenario: ZabbixServerHomePage Homepage HomepageLogin TOTAL Zoom: 5m 15m 30m lh All Speed 26.74 KBPS 27.99 KBPS Response time 1086ms 1057ms 214.2ms Filter ZabbixServerHomePage Response code 2017-08-08 10:36 - 2017-08-0810:51 (nc lh 5m 60 Kaps 40 Kaps 20 Kaps O aps 5m lh Speed (15m) Download speed for step 'Homepage' of scenario 'ZabbixSewerHomePage Download speed for step 'HomepageLogin' of scenario 'ZabbixServerHomePage [avg] [avg] 26.75 KBPS 27.62 KBPS min 11.15 KBPS 11.03 KBPS avg 24.32 KBPS 26.18 KBPS ZabbixServerHomePage. Response time (15m) 500ms 400ms 300ms 200ms 100ms

 

 

原创粉丝点击