Zabbix Trigger function usage instructions

Source: Internet
Author: User
Tags vmware server

Zabbix Trigger function usage instructions

Zabbix Trigger function usage instructions

Abschange

Parameter: directly ignore the following parameters.

Supported value types: float, int, str, text, and log

Description: return the absolute value of the difference between the recently obtained value and the previous value. For string type, 0 indicates that the value is equal, and 1 indicates that the value is different.

Avg

Parameter: Second or # num

Supported value types: float and int

Description: returns the average value of a specified interval. the time interval can be set by the first parameter in seconds or the number of collected values (you need to add # To the front side, for example, #5 indicates the value of the last five times ). If the second one exists, it indicates time shift. For example, if you want to query the average value of one hour before a day, the corresponding function is avg ), time drift is added to Zabbix 1.8.2.

Change

Parameter: directly ignore the following parameters.

Supported value types: float, int, str, text, and log

Description: return the difference between the recently obtained value and the previous value. For string type, 0 indicates the value is equal, and 1 indicates the value is different.

Count

Parameter: Second or # num

Supported value types: float, int, str, text, and log

Description: Return numerical statistics within a specified interval. The time interval can be set by the first parameter in seconds or the number of collected values (# Must be added before the value #). This function supports the second parameter as the sample (pattern) data, the third parameter as the operator parameter, and the fourth parameter as the time shift parameter. for samples, the iteeger metric item is used for exact matching, and the float metric item deviation is 0.0000001.

Supported operators types:

Eq: equal

Ne: not equal

Gt: greater

Ge: greater than or equal

Lt: less

Le: less than or equal

Like: content matching

Supports eq (default), ne, gt, ge, lt, le for integer and floating point monitoring items; like (default), eq, ne for string, text, and log monitoring items

Example:

Count (600): number of values in the last 10 minutes

Count (): number of the last 10 minutes with a value equal to 12

Count (, 12, "gt"): number of values greater than 12 in the last 10 minutes

Count (#, "gt"): number of the last 10 values greater than 12

Count (86400, 12, "gt",): the number of data values greater than 12 in the first 10 minutes before 24 hours

Count (600, 86400): number of values of the first 10 minutes before 24 hours

# The num parameter is supported since Zabbix 1.6.1, and the time shift parameter and string operation support starts from Zabbix 1.8.2.

Date

Parameter: directly ignore the following parameters.

Supported Value Type: All (any)

Description: returns the current date in the format of YYYYMMDD, for example, 20031025.

Dayofmonth

Parameter: directly ignore the following parameters.

Supported Value Type: All (any)

Description: returns the current day of the month (value range: 1-31). This function is supported from Zabbix 1.8.5.

Dayofweek

Parameter: directly ignore the following parameters.

Supported Value Type: All (any)

Description: returns the day of the week (value: 1-7), Monday is 1, and Sunday is 7.

Delta

Parameter: Second or # num

Supported value types: float and int

Description: return the difference (max ()-min () between the maximum and minimum values within the specified time interval ()). The time interval can be the second or the number of collected values as the first parameter. The optional second parameter time_shift is supported starting from Zabbix 1.8.2.

Diff

Parameter: Ignore

Supported value types: float, int, str, text, and log

Description: If the return value is 1, the nearest value is different from the previous value. If the return value is 0

Fuzzytime

Parameter: seconds

Supported value types: float and int

Description: The return value is 1, indicating that the time stamp of the metric item value and the time of Zabbix Server are more than N seconds, and 0 is other. system. localtime to check whether the local time is the same as that of Zabbix server.

Iregexp

Parameter: the first is a string, and the second is a second or # num

Supported value types: str, log, and text

Description: similar to regexp, the difference is case insensitive.

Last

Parameter: Second or # num

Supported value types: float, int, str, text, and log

Description: The nearest value. If the value is second, ignore it. # num indicates the nth value recently. Note that the current # num and # num of some other functions have different meanings.

Example:

  1. Last (0) is equivalent to last (#1)
  2. Last (#3) indicates the last ** number ** (not the last three values)
  3. This function also supports the second parameter ** time_shift **, for example
  4. Last () returns the most recent value one day ago
  5. If multiple values exist in the same second in history, Zabbix does not guarantee the exact order of values.
  6. # Num is supported since Zabbix 1.6.2, and timeshift is supported since 1.8.2. You can query the avg () function to obtain its usage.

Logeventid

Parameter: string

Supported Value Type: log

Description: Check whether the Event ID of the latest log entry matches the regular expression. The parameter is a regular expression and the POSIX extension style. If the returned value is 0, it indicates no match, and 1 indicates match. This function is supported since Zabbix 1.8.5.

Logseverity

Parameter: Ignore

Supported Value Type: log

Description: log Level (log severity) of the latest log entry ). when the returned value is 0, it indicates the default level, and N indicates the corresponding level (integer, often used in Windows event logs ). zabbix log level comes from the Information column of Windows event log.

Logsource

Parameter: string

Supported Value Type: log

Description: Check whether the most recent log entries match the log source of the parameter. If the return value is 0, it indicates no match, and 1 indicates match. For Windows event logs monitoring, for example, logsource ["VMWare Server"]

Max

Parameter: Second or # num

Supported value types: float and int

Description: returns the maximum value of the specified interval. the time interval can be the first parameter or the number of collected values (prefix #). starting from Zabbix 1.8.2, the function supports the second optional parameter time_shift. You can view the avg () function to obtain its usage.

Min

Parameter: Second or # num

Supported value types: float and int

Description: returns the minimum value of the specified interval. the time interval can be the first parameter or the number of collected values (prefix #). starting from Zabbix 1.8.2, the function supports the second optional parameter time_shift. You can view the avg () function to obtain its usage.

Nodata

Parameter: seconds

Supported Value Type: any

Description: when the return value is 1, it indicates that no data is received at the specified interval (the interval should not be less than 30 seconds), and 0 indicates other data.

Now

Parameter: Ignore

Supported Value Type: any

Description: The number of seconds from Epoch (January 1, 1970 00:00:00 UTC ).

Prev

Parameter: Ignore

Supported value types: float, int, str, text, and log

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

Regexp

Parameter: the first parameter is string, and the second parameter is second or # num

Supported value types: str, log, and text

Description: checks whether the most recent value matches a regular expression. The regular expression of the parameter is a POSIX extension style. The second parameter is the number of seconds or the number of collected values. Multiple values are processed. this function is case sensitive. If the return value is 1, it indicates that the value is found, and 0 indicates other values.

Str

Parameter: the first parameter is string, and the second parameter is second or # num

Supported value types: str, log, and text

Description: searches for strings in the most recent value. The first parameter specifies the string to be searched, Which is case sensitive. The second optional parameter specifies the number of seconds or the number of collected values. Multiple values are processed. If the return value is 1, it indicates that the value is found, and 0 indicates other values.

Strlen

Parameter: Second or # num

Supported value types: str, log, and text

Description: The length (not in bytes) of the string with the latest value. The parameter value is similar to the last function. for example, strlen (0) is equivalent to strlen (#1). strlen (#3) indicates the third value recently. strlen () indicates the most recent value one day ago. this function is supported since Zabbix 1.8.4.

Sum

Parameter: Second or # num

Supported value types: float and int

Description: returns the sum of the values collected during the specified interval. the time interval is used as the first parameter to support the number of seconds or collected values (starting ). starting from Zabbix 1.8.2, This function supports time_shift as the second parameter. You can view the avg function to obtain its usage.

Time

Parameter: Ignore

Supported Value Type: any

Description: returns the current time, in the format of HHMMSS, for example, 123055.

Some Zabbix Tutorials:

Compile and install Zabbix2.4.5 source code in Ubuntu 14.04

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy Zabbix in CentOS 6.3

Zabbix distributed monitoring system practice

Under CentOS 6.3, Zabbix monitors apache server-status

Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

ZABBIX details: click here
ZABBIX: click here

This article permanently updates the link address:

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.