Description: Webmonitoring is used to monitor Web programs, can monitor the download speed of Web programs, return codes and response time, but also support a set of continuous Web action as a whole to monitor.
1. Access the Web resources of the monitoring host
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/BD/wKioL1RutT6Tp0NAAAMb6l3l6v8658.jpg "style=" float: none; "title=" Image 23.png "alt=" Wkiol1rutt6tp0naaamb6l3l6v8658.jpg "/>
2. Create a web Scene
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/BF/wKiom1RutMXi_WT6AAJydNcx1Ew689.jpg "style=" float: none; "title=" Image 24.png "alt=" Wkiom1rutmxi_wt6aajydncx1ew689.jpg "/>
3. Set up a scene to access the Web page, including IE client and login account (if any)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/BD/wKioL1RutT7whsiTAAO4oI7cLXE940.jpg "style=" float: none; "title=" Image 25.png "alt=" Wkiol1rutt7whsitaao4oi7clxe940.jpg "/>
Description: You can create a separate application group for web monitoring, set up Web monitoring in new application, and use authentication to set up an account for the landing page:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/53/C1/wKiom1Ru3VvDH0BLAAJtXs0o8xY354.jpg "title=" Qq20141121143551.png "alt=" Wkiom1ru3vvdh0blaajtxs0o8xy354.jpg "/>
4. Setup Step steps
Web application steps, add a login step to simulate the user login, pass the user and password to the index.php page
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/BD/wKioL1RutVTzSEgpAAL85M6Z8Tk084.jpg "style=" float: none; "title=" Image 26.png "alt=" Wkiol1rutvtzsegpaal85m6z8tk084.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/BF/wKiom1RutNziM9WEAAEbvRnx84g769.jpg "style=" float: none; "title=" Image 27.png "alt=" Wkiom1rutnzim9weaaebvrnx84g769.jpg "/>
Setting Description:
URL: Monitored Web pages (must be full path with page name) Post: parameters passed to the page, & connections between multiple parameters, here you can refer to the previously defined variable timeout: time-out required: requires the characters that can be matched to the page. Error Statuscodes: Requires a page return code, such as 200, 404, 500
If you set authentication, you do not have to log in by parameters:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/53/BF/wKioL1Ru3s7w_WgoAAMhcsIZ2gQ705.jpg "title=" Qq20141121144006.png "alt=" Wkiol1ru3s7w_wgoaamhcsiz2gq705.jpg "/>
5. View monitoring Results
Monitoring status OK indicates that the page responds properly:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/53/BF/wKioL1Ru32yDdAlZAAIAU2bZZpA893.jpg "title=" Qq20141121144115.png "alt=" Wkiol1ru32yddalzaaiau2bzzpa893.jpg "/>
Click on the monitoring name to see details:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/53/BF/wKioL1Ru33iwWxTSAAPJU7OAVnU820.jpg "title=" Qq20141121144204.png "alt=" Wkiol1ru33iwwxtsaapju7oavnu820.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/53/C1/wKiom1Ru3wrBGu7hAAHwAqU-tDQ556.jpg "title=" Qq20141121144225.png "alt=" wkiom1ru3wrbgu7haahwaqu-tdq556.jpg "/> Description: After creating a good web scenario, Zabbix will automatically create the relevant items, so we just need to add triggers for these items so that the Web scenario will be sent an alarm when something goes wrong.
6. Create a Trigger
The system creates 3 item for each step, which is the downloadspeed page download speed/responsecode response Code/responsetime response time for the entire web Scenario creates a Web.test.fail item and a web.test.error item, which you can create trigger for each of them.
(1) Create a trigger to monitor Zabbix login failure:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/53/BF/wKioL1Ru4jPBkMeyAALvR-4OTPU294.jpg "title=" Qq20141121145336.png "alt=" Wkiol1ru4jpbkmeyaalvr-4otpu294.jpg "/>
Tap Add to add an expression:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/53/C1/wKiom1Ru4dzSg-q1AAE_YsbMtaY638.jpg "title=" Qq20141121145235.png "alt=" wkiom1ru4dzsg-q1aae_ysbmtay638.jpg "/> Click Select to automatically generate items:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/BF/wKioL1Ru4SDy8Xq1AABXXakkRd4091.jpg "style=" float: none; "title=" Qq20141121144850.png "alt=" Wkiol1ru4sdy8xq1aabxxakkrd4091.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/C1/wKiom1Ru4KewmZ5fAAEqBOEuR6E148.jpg "style=" float: none; "title=" Qq20141121144905.png "alt=" Wkiom1ru4kewmz5faaeqboeur6e148.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/BF/wKioL1Ru4SHB2S03AAE8QdIzcxs142.jpg "style=" float: none; "title=" Qq20141121144917.png "alt=" Wkiol1ru4shb2s03aae8qdizcxs142.jpg "/>
Description: Items that are automatically created are not visible in the items list in host and can only be seen when you create trigger select items.
(2) Create a trigger that monitors the success of all step runs across the web scenario
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/53/BF/wKioL1Ru5KijswFHAAFaFWxFGyo413.jpg "title=" Qq20141121150454.png "alt=" Wkiol1ru5kijswfhaafafwxfgyo413.jpg "/>
A return value of 0 indicates that all steps for the entire Web scenario have been executed successfully, and the step execution failed on the first step returns a number, and the subsequent step will not continue.
This article is from the "Moon Ching Xing Fei" blog, please be sure to keep this source http://ywzhou.blog.51cto.com/2785388/1580913
Zabbix Monitoring (14): Add Web Monitoring Web Monitorings