Description of functions supported by "translation" Zabbix trigger trigger

Source: Internet
Author: User
Tags posix vmware server

Original: http://pengyao.org/zabbix-triggers-functions.html


    • Original source: Https://www.zabbix.com/documentation/2.0/manual/appendix/triggers/functions

    • Translator: Pengyao

Abschange
    • parameters : Ignoring the parameters directly behind

    • supported value types : float, int, str, text, log

    • Description : Returns the absolute value of the difference between the most recently acquired and the previous value. For string types, 0 means equal values and 1 means different values

Avg
    • parameter : seconds or #num

    • supported value types : float, int

    • Description : Returns the average of the specified time interval. The time interval can be set or the number of values collected by the first parameter by the number of seconds (preceded by a #, for example, # # represents the last 5 times the value). If there is a second, it represents the time shift, such as the average of one hour before the day of the query, the corresponding function is AVG (3600,86400), and the time drift is Zabbix 1.8.2.

Change
    • parameters : Ignore the parameters directly behind

    • supported value types : float, int, str, text, log

    • Description : Returns the difference between the most recently acquired value and the previous value. For string types, 0 means equal values and 1 means different values

Count
    • parameter : seconds or #num

    • supported value types : float, int, str, text, log

    • Description : Returns the numeric statistics for the specified time interval. The time interval can be set by the first parameter or the number of values collected by the number of seconds (requires a value preceded by #). This function can support the second parameter as the sample (pattern) data, the third parameter as the operation (operator) parameter, and the fourth parameter as the time Shift (temporal) parameter. For samples, integer (iteeger) monitoring items are useful for exact matching, floating-point (float) monitoring items allow deviations of 0.0000001

Supported operation (operators) types:

EQ: equal NE: Unequal GT: Greater than GE: greater than or equal to LT: less than Le: less than equals like: content matching

Supports EQ (default) for integer and floating-point monitoring items, NE, GT, GE, lt, le, and for string, text, log monitoring items like (default), EQ, NE

Example:

COUNT (600): Number of values for the last 10 minutes count (600,12): Last 10 minutes, value equals 12 count (600,12, "GT"): Last 10 minutes, number of values greater than 12 count (#10, "GT"): The last 10 values, the number of values greater than 12 count (600,12, "GT", 86400): 24 hours before the first 10 minutes of data, the number of values greater than 12 count (,,, 86400): 24 hours ago The number of values for the first 10 minutes of data

#num参数从Zabbix 1.6.1 Start support, Time shift parameter and string manipulation support starting from Zabbix 1.8.2

Date
    • parameters : Ignore the parameters directly behind

    • supported value Types : All (Any)

    • Description : Returns the current date (in YYYYMMDD format), for example 20031025

DayOfMonth
    • parameters : Ignore the parameters directly behind

    • supported value Types : All (Any)

    • Description : Returns the day of the current month (value range: 1-31), which is supported from Zabbix 1.8.5

DayOfWeek
    • parameters : Ignore the parameters directly behind

    • supported value Types : All (Any)

    • Description : Returns the day ordinal of the week (value returned: 1-7), Monday is 1, Sunday is 7

Delta
    • parameter : seconds or #num

    • supported value types : float, int

    • Description : Returns the difference between the maximum and minimum values for the specified time interval (max ()-min ()). The time interval as the first parameter can be seconds or the number of collected values. Starting with Zabbix 1.8.2, the optional second parameter time_shift is supported.

Diff
    • parameters : Ignore

    • supported value types : float, int, str, text, log

    • Description : A return value of 1 indicates that the most recent value differs from the previous value and 0 is a different condition

Fuzzytime
    • parameter : Seconds

    • supported value types : float, int

    • Description : A return value of 1 indicates the time stamp of the monitoring item value with Zabbix server for more than n seconds, and 0 for other. System.localtime is often used to check whether local time is the same as Zabbix server time.

Iregexp
    • arguments : The first is a string, the second is a second or a #num

    • supported value types : str, log, text

    • description : Similar to regexp , the difference is case insensitive

Last
    • parameter : seconds or #num

    • supported value types : float, int, str, text, log

    • Description : The most recent value, if it is seconds, is ignored, #num表示最近第N个值, note that the current #num and some other functions of #num mean different

Example:

Last (0) is equivalent to the past (#1) (#3) represents the most recent * * **3 value (not the most recent three values) This function also supports the second parameter **time_shift**, for example (0,86400) Returns the most recent value a day ago if there are multiple values in the same second in history, Zabbix does not guarantee the exact order of the values #num from Zabbix 1.6.2 starts with support, timeshift from 1.8.2 It starts to support, you can query the AVG () function to get its use method
Logeventid
    • parameter : string

    • supported value types : Log

    • Description : Checks whether the event ID of the most recent log entry matches the regular expression. Parameters are regular expressions, POSIX extended styles. A mismatch is indicated when the return value is 0, and 1 indicates a match. This function is supported starting from Zabbix 1.8.5.

LogSeverity
    • parameters : Ignore

    • supported value types : Log

    • Description : Returns the log level (log severity) of the most recent log entry. When the return value is 0, it represents the default level, and n is the specific level (integer, commonly used in Windows event logs). The Zabbix log level is derived from the information column of Windows event log.

Logsource
    • parameter : string

    • supported value types : Log

    • Description : Checks whether the most recent log entry matches the log source for the parameter. A mismatch is indicated when the return value is 0, and 1 indicates a match. The Pass-field is used for Windows event logs monitoring. For example logsource["VMWare Server")

Max
    • parameter : seconds or #num

    • supported value types : float, int

    • Description : Returns the maximum value for the specified time interval. The time interval as the first parameter can be the number of seconds or collection values (prefixed by #). Starting with Zabbix 1.8.2, the function supports the second optional parameter time_shift, and you can view the AVG () function to get its use.

Min
    • parameter : seconds or #num

    • supported value types : float, int

    • Description : Returns the minimum value for the specified time interval. The time interval as the first parameter can be the number of seconds or collection values (prefixed by #). Starting with Zabbix 1.8.2, the function supports the second optional parameter time_shift, and you can view the AVG () function to get its use.

NoData
    • parameter : Seconds

    • supported value types : any

    • Description : When a return value of 1 indicates that the specified interval (interval should not be less than 30 seconds) has not received data, 0 represents the other.

Now
    • parameters : Ignore

    • supported value types : any

    • Description : Returns the number of seconds from the epoch (January 1, 1970 00:00:00 UTC) time

Prev
    • parameters : Ignore

    • supported value types : float, int, str, text, log

    • Description : Returns the previous value, similar to last (#2)

Regexp
    • parameters : The first argument is a string, the second argument is a second or #num

    • supported value types : str, log, text

    • Description : Checks whether the nearest value matches a regular expression, the regular expression for the parameter is a POSIX extended style, the second parameter is the number of seconds, or the number of collected values, and multiple values are processed. This function is case-sensitive. When a return value of 1 is found, 0 is the other.

Str
    • parameters : The first argument is a string, the second argument is a second or #num

    • supported value types : str, log, text

    • description : Finds the string in the nearest value. The first parameter specifies the string to find, case sensitive. The Second optional parameter specifies the number of seconds or collection values that will be processed by multiple values. When a return value of 1 is found, 0 is the other.

Strlen
    • parameter : seconds or #num

    • supported value types : str, log, text

    • Description : Specifies the string length (not bytes) of the nearest value, and the parameter value is similar to the last function. For example, strlen (0) is equivalent to strlen (#1), strlen (#3) represents the most recent third value, and strlen (0,86400) represents the most recent value from the previous day. This function starts from Zabbix 1.8.4 and Supports

Sum
    • parameter : seconds or #num

    • supported value types : float, int

    • Description : Returns the sum of the values collected in the specified time interval. The time interval supports the number of seconds or collection values (starting with #) as the first parameter. Starting with Zabbix 1.8.2, this function supports Time_shift as a second parameter. You can view the AVG function to get its usage

Time
    • parameters : Ignore

    • supported value types : any

    • Description : Returns the current time, formatted as HHMMSS, for example 123055


Description of functions supported by "translation" Zabbix trigger trigger

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.