Zabbix WEB monitoring implementation process diagram

Zabbix WEB monitoring implementation process diagram

Take zabbix's own WEB interface as an example to configure web monitoring

Environment: zabbix4.2.8

1. Path: Configuration - Host - Select 'WEB Monitoring', click 'Create WEB Scene' in the upper right corner


2. Fill in the scene name, application set, update interval, number of attempts and client, all of which can be customized

3. Click 'Step' - click 'Add' to configure the first step 'Open Page'. The configuration is as shown in the figure below. The step name is customized and the URL is the URL when opening zabbix, which is generally http://IP/zabbix.

Check 'Follow Redirect' (if not checked, a 301 error will be reported), the timeout period defaults to 15s, fill in 200 for the required status code (multiple status codes can be separated by commas, such as: 200, 404, 500), and then click 'Add' in the lower right corner to add a step.


Click 'Add' again to successfully add a new Web scenario


Click 'Monitoring' - 'Latest Data', select our test machine, and wait for a minute before you can see data, indicating that the configuration is correct. Here we can see the information returned by step 'Open Page', including key values ​​such as 'web.test.in' (average download speed), 'web.test.fail' (number of failed steps), 'web.test.error' (text information returned when an error occurs), 'web.test.rspcode' (response code of the step, such as the common 200, 301, 302, 404, 500, etc.), and 'web.test.time' (response time of the step)

4. Next, configure step 2 to simulate the login page.

As we all know, logging into zabbix requires an account and password. Here we need to use Google Chrome (other browsers are also fine, I am used to using Google) to help analyze the information needed for the login page.

Open the zabbix login page (http://IP/zabbix), press 'F12', click 'Network', the small red circle indicates that network log analysis is enabled, and I choose All for page resources. Different webs require specific analysis of appropriate resources.


Enter your account password, click 'Sign in' to log in, then click the index.php file (usually the first requested resource file that appears after clicking the login option). Scroll to the bottom and you will see 'From Data', which is the information needed for this page login monitoring. Click 'view source' and you can see a string of characters, as shown below. We copy it to a temporary document and save it for future use.



Back to the Web scenario, create a new step 'Login Page', fill in the URL of the link that appears after logging in to Zabbix, click 'Original Data', and copy the string containing the account and password information just obtained from the web page into 'Original Release'. Check 'Page jump', the default timeout is 15s, and the required characters can be filled in with any string you see after logging in. I wrote 'Global view' here, and 'Required status code' is also filled in with '200'. Finally, click 'Add' in the lower right corner to successfully add the steps for the login page.


PS: After copying the original data and switching to the table data, the fields will be automatically matched. I personally think this small detail is great.


After successful configuration, the following figure is shown:


Let's take a look at the latest data again. Wait a minute and you can see that the monitoring information for the 'web login' step has also been released.


5. Click 'Monitoring' - 'WEB Monitoring', you can see the host where we have configured WEB monitoring. Click the name of the WEB scene (here is zabbix) to see the WEB monitoring data displayed in a chart.


6. Add triggers to the created WEB scene. I will not describe it in detail here. You can configure it yourself. After adding the trigger, our entire WEB monitoring is completed.


The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Example code for configuring monitoring items and aggregated graphics in Zabbix
  • The implementation principle of Zabbix dynamic execution monitoring collection script
  • Detailed tutorial on how to monitor Nginx/Tomcat/MySQL using Zabbix
  • zabbix custom monitoring nginx status implementation process

<<:  JavaScript Array Detailed Summary

>>:  Various types of MySQL indexes

Recommend

Learn the operating mechanism of jsBridge in one article

Table of contents js calling method Android 1.js ...

Detailed explanation of the difference between tags and elements in HTML

I believe that many friends who are new to web pag...

Implementation of pushing Docker images to Docker Hub

After the image is built successfully, it can be ...

CentOS7 uses yum to install mysql 8.0.12

This article shares the detailed steps of install...

js realizes the image cutting function

This article example shares the specific code of ...

Example of implementing dynamic verification code on a page using JavaScript

introduction: Nowadays, many dynamic verification...

Detailed explanation of Vue save automatic formatting line break

I searched for many ways to change it online but ...

Nginx one domain name to access multiple projects method example

Background Recently, I encountered such a problem...

How to Enable or Disable Linux Services Using chkconfig and systemctl Commands

This is an important (and wonderful) topic for Li...

About input file control and beautification

When uploading on some websites, after clicking t...

MySQL startup error InnoDB: Unable to lock/ibdata1 error

An error message appears when MySQL is started in...

JS cross-domain XML--with AS URLLoader

Recently, I received a requirement for function ex...

Two ways to implement HTML page click download file

1. Use the <a> tag to complete <a href=&...