Zabbix 3.2 Using Web scenarios custom URL monitoring

Source: Internet
Author: User

  • Install the Zabbix and configure the zabbix-agent.
  • Log in to your Zabbix Web page
  • Select the configuration page, click on the Host page, click the hosting Web option, where the author uses the reverse proxy of his own test environment to centralize the monitoring of the web.

    In the top right corner, click Create Web Scenario

    Input tags I am accustomed to use the URL directly, convenient to distinguish between HTTP and HTTPS for fast positioning
  • Click Steps at the top of the screen and click Add in the middle of the screen:
  • Play come, enter the name of the identity, I am accustomed to write URLs here, especially for the reverse proxy of the sub-page, etc., convenient to quickly see which page of the site is a problem.
    In the option retrieve only headers position tick, and enter 200 in the return value. That is, only check if the head returns 200. Click Add

    If you want to check the header content of the URL, you can paste the entire header information into the head.
    6. If the URL is password verified, you need to select Authentication page, add the user name password of the Web login, here remember according to your authentication method to modify, I use the HTTP simple authentication, enter the correct username password after clicking Add, this monitoring item is established.
  • Below need to create a trigger, just click on the host page above the trigger, in the upper right corner of the screen click Create Trigger

    Enter the name of the URL you want to monitor in the new page, I'm used to the URL.
    Select the fault category, I think all URLs return 200 is a disaster, click Expression Constructor (Expressions builder)

    Click Add to identify that I want to create a new expression with the builder.

    Popup New page:

    Click on select to find your newly established monitoring items, here are a number of content, depending on the alarm you want to make a choice, here I want to do is the return value is not equal to 200, feel troublesome can ctrl+f paste into the URL you just entered, until find your response code for step " Https://www.17got.com "of Scenario" https://www.17got.com ".

    Select function as last (most recent) T value is not N:
    Input t variable is 2m (2 minutes, because the default check time when setting HTTP monitoring is 1 minutes 1 times) input n variable is 200, click Insert (I love this word.)

    Complete the page as follows, remember to click on Allow manual close, if the development of your URL changed or expired, and can not be turned off, the main page will feel very disgusting people. Click Add

    If you have configured the alarm vector (\ Nail robot \ Mail), when the URL return value is not 200 will give you the alarm. Other advanced points of use is that if a XXX tampered with your homepage header information, Baidu snapshot hijacking, you can add action to execute shell command to restore,
    Finally look at the author's web site monitoring content

    You can clearly see the response time of the website.
    It is recommended that the monitoring URL is best used by another cloud provider that is not part of the same network segment, and that the actual effect is easier to see between different systems. Multiple sub-pages with LAN IP to facilitate monitoring to specific which server has failed to facilitate rapid positioning.
  • Zabbix 3.2 Using Web scenarios custom URL monitoring

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.