Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Alarm principle and creation method of [Zabbix] Zabbix trigger

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Overview:

The expressions in triggers are very flexible, and we can create a complex logical test monitor in the form of trigger expressions:

{:. ()} {Host: key. Function (parameter)} constant

Functions function: the trigger functions can refer to the retrieved value, current time, or other elements. For a complete list of function supported by trigger expressions, click the official website address supported functions

Function parameter-most numeric functions can use seconds as a parameter. You can use the prefix "#" to indicate that it has a different meaning

FUNCTION CALL describes the sum of sum (600) 600s and the sum of the last five values of sum (# 5)

The last function will get different values with different parameters, and # 2 represents the second-to-last new data. From the old to the latest, the value is 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, last (# 2), the value is 9, and the value is 2. The last function must contain parameters.

The AVG,count,last,min and max functions also support additional parameters, the parameter time_shift (time offset) in seconds. For example, avg (1 hour and 1 day), then you will get the average data within 1 hour yesterday.

[warning] Note: trigger expressions need to be evaluated using history historical data. If history is not available (the time_shift time offset parameter cannot be used), history records must be kept for a long time, at least the records needed. [/ warning]

Trigger expressions can use unit symbols instead of large numbers, such as 5m instead of 300m, or 1d instead of 864001k instead of 1024 bytes, and so on. Operator:

Priority operation definition 1 / divided by 2 * multiplied by 3-minus 4 + plus 5=B+0.000001) does not equal. The usage is as follows:

Axib ⇔ (A=B+0.000001) 8 = equals. The usage of T is as follows:

Amib ⇔ (A > Bink 0.000001) & (A

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report