Zabbix monitoring web service monitoring

1. Monitoring of short-speaking URLs

There are many things that zabbix can monitor, and web services are the most common one. For web services, my monitoring solution is generally the following method:

Through the URL link, get the specific value and return the status code.

2. Thinking

When zabbix creates a new web service monitoring item, the following needs to be configured:

App Collection: Just a Name

Triggers: The main part is the writing of expressions

Web monitoring: including some information about the web service (requested URL address, intercepted specific value, returned status code)

3. Configuration

1. Preparation of web services (here takes nginx as an example)

Create an html file with a specific value in the nginx site directory

cat /application/nginx/html/www/check.html 

Hello World!

2. Configuration of zabbix interface

blob.png

2.1 Create an application set

blob.png

blob.png

2.2 Configure web monitoring

blob.png

blob.png

blob.png

blob.png

Such a web service monitoring is built

2.3 Configuration of triggers

blob.png

blob.png

blob.png


blob.png

blob.png

blob.png

The trigger is built. So far, monitoring the web service through the URL is complete.





Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324777116&siteId=291194637