zabbix3.2添加web页面监控(Web monitoring)
本帖最后由 yun 于 2018-5-3 15:31 编辑zabbix3.2添加web页面监控(Web monitoring)
应用场景:存在一种情况:nginx或者httpd服务本身运行正常,但是网页挂了,类似于网页被黑,或者40X之类的...可以用zabbix把web页面访问也监控起来,第一时间得知web崩溃信息并做相应处理。
操作流程:(以下演示流程二)流程一:
https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829112334155-944728009.png
流程二:
https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829112433999-321378432.png
测试环境:https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829134956077-954878316.png
操作步骤:官网:https://www.zabbix.com/documentation/3.2/manual/web_monitoring1. 新增Web monitoring
2. 新增一个触发器Trigger
https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829142222280-1082365214.png点击“Insert”以后,完成后点击页面下的Add之后,可以看见如下
https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829142827233-220573580.png
3. 测试-检测告警效果
https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829143104483-613515965.png
接下来,我在Nginx上将index.html文件改后缀来模仿错误https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829143528640-1706426048.png
zabbix很快就检测出请求返回值与正常值(200)不匹配,如下
https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829143328483-367016217.png
紧接着,我的手机就会收到微信告警:https://images2017.cnblogs.com/blog/1016513/201708/1016513-20170829144011124-117629855.png
结束。
页:
[1]