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.
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.