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
2.1 Create an application set
2.2 Configure web monitoring
Such a web service monitoring is built
2.3 Configuration of triggers
The trigger is built. So far, monitoring the web service through the URL is complete.