23421 发表于 2015-10-29 13:42:13

zabbix------监控web站点(参考官方文档)

ps:如果想要zabbix做web监控,需要在编译的时候加上--with-libcur才行

1 不带密码的监控
首先,在一个host下添加一个application(图略),起名application,其实无所谓,如果host不是空application,这一步可以省略,新版2.4.8的zabbix的configuration下面没有web选项了,新建web scenario方案

定义scenario steps

authentification我基本没配置

监控的结果基本上是这样的

可以看到默认的监控项有:可以参考https://www.zabbix.com/documentation/2.4/manual/web_monitoring/items文档的内容
站点的下载速度download speed of the scenario
网页的下载速度    download speed of the step   item:web.test.in
失败的步骤step   faild step of scenario             item:web.test.fail
上次的错误页面    last error page                     item:web.test.error
网页的返回码       response code of the step       item:web.test.rspcode
网页的响应时间   response for the step               item:web.test.time


2 带用户名密码的测试,取例自官方https://www.zabbix.com/documentation/2.4/manual/web_monitoring/example
比较简单,就简单截几张图了

宏定义


step1

step2

step3

step4

step预览



最终的结果


页: [1]
查看完整版本: zabbix------监控web站点(参考官方文档)