Zabbix trigger change/count/delta usage details

Source: Internet
Author: User
Tags regular expression

I. 1. change


The amount of difference between the last value and the previous value (change is used to obtain the difference between the return value of item and the previous value)

Supported types include float, int, str, text, and log.

Returns the value 0-equal to 1-different strings.

II. 1. 1 example

{Www.111cn.net: system. uptime. change (0)} <1

Key: www.111cn.net: system. uptime

Change (0): ignore parameter generally input 0, <indicates that the difference between the nearest value and the previous value is less than 1

For example:

{Www.111cn.net: agent. version. change (0)} = 1

The agent version of www.111cn.net has changed.

For example:

{Www.111cn.net: vfs. fs. size [/, free]. change (5 m)} <

Indicates that the value of the last time is smaller than the value obtained in the previous 5 minutes.

III. 2. count

Number of defined values during the evaluation period.

Second or # NUM-the unit of second during the evaluation period or the value collected as the latest (starting with a well number)

The modes and operators are optional. They support integer items, exact match, floating, INT, STR, text, and log.

Supported: EQ-equal to NE-not equal to GT-greater GE-greater than or equal to LT-less than or equal to regexp and iregexp are case sensitive

2.1 Example

& RArr; count (10 M) & rarr; number of values in the last 10 minutes
& RArr; count (10 M, 12) & rarr; the number of values equals '12' in the last 10 minutes.
& RArr; count (10 m, 12, "gt") the number of times the value of the last 10 minutes is greater than 12
& RArr; count (#, "gt") the number of times the value is greater than 12 in the last 10 values
& RArr; count (86400, "gt",) the number of data values greater than 12 in the first 10 minutes before 24 hours (one day)
& RArr; count (600, 86400) the number of values in the first 10 minutes before one day
The zabbix 1.6.1 # NUM parameter is supported.
The time_shift parameter of zabbix from 1.8.2 and string carrier support.
Supported by zabbix band carriers from 2.2.0. Regular expression, iregexp operator, because zabbix of 3.2.0 supports

2.2 Example

{Www.111cn.net. http. count (10 m)}> 10

If the value of the last 10 minutes is greater than 10 triggers

{Www.111cn.net. http. count (10 m, 12)}> 10

The number of values in the last 10 minutes is equal to '12'. If the number of times is greater than 10

{Www.111cn.net. http. count (10 m, 12, "gt")}> 10

If the value in the last 10 minutes is greater than 12 times, it is triggered.

{Www.111cn.net. http. count (#10, 12, "gt")}> 10

In the last 10 values, if the number of times that the value is greater than 12 appears more than 10 times, the trigger

{Www.111cn.net. http. count (86400, "gt",)}> 10

Trigger if the value of 10 minutes in a day is greater than 12 times

{Www.111cn.net. http. count (600, 86400)}> 10

Triggered when the number of values in the first ten minutes of a day exceeds 10.

IV. 3. date/dayofmonth/dayofweek

Date: The current date in YYYYMMDD format. Any return value, such as 20150731

Dayofmonth: the range of days of this month is 1 to 31. Any returned values are supported, starting with zabbix 1.8.5.

Dayofweek: returns the day of the current week. The value range is 1-7. Any type is supported.

V. 4. delta

Differences between the maximum and minimum values during the defined evaluation period (max ()-min ())

Seconds or # NUM-the period is measured in seconds or the specified latest value collected (starting with a hash mark) time_shift (optional), supports floating and int

(Sec | ''# num, time_shift) the difference between the maximum value and the minimum value is obtained within the second of the sec or within the number of # num. The time_shift parameter is supported after zabbix 1.8.2.

4.1 Example

{Www.111cn.net: tcp, 21. delta (300)}> 0

The difference between the maximum and minimum values within five minutes is greater than 0.

{Www.111cn.net: net. if. in [eth1]. delta (300)}> 100 M

The eth1 traffic is within 300 seconds. If the difference between the maximum and minimum values is greater than 100 M

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.