Use zabbix 3.x to monitor nginx, php, and other error logs and send alarms

Source: Internet
Author: User
Zabbix monitoring logs have been configured many times before, and many items have been monitored. However, my website does not have this content. I will fill in this item today. Today, we will take an example of an error reported by php in monitoring nginx's previous error. Suppose all php errors contain a string: stderr. We will match this string.

 

1. Add a metric item:


 

Note that you must select active as the type.

 

2. Set the trigger
There are two trigger Principles: The first is to trigger an alarm after data is generated, and the second is to stop the trigger when no new error is reported in a time period. If you only set the first one, you will receive frequent alarms, including some unreliable information on the Internet.


 

After the settings are complete, no problem occurs.
In the future, an alert is immediately triggered when an error string is generated. If no new data is generated within one minute, the alert is stopped.

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.