Zabbix Monitoring Parameters

Source: Internet
Author: User
Tags diff

Trigger function

http://www.ttlsa.com/monitor/zabbix/

1, 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

For example: {www.zabbix.com:vfs.fs.zise[/,free].abschange (10m)}<10, indicated in the www.zabbix.com device, the key value Vfs.fs.size[/,free] The last obtained value and the difference in the first 10 minutes is 10, the result may be that the last value is larger than before, or it may be smaller than the previous value, that is, from 10 to 0, and then from 0 to 10 a range, which can be called the jitter value or the error range.


2. Avg

Parameter: Seconds or #num

Supported value types: float and int

Description: Returns the average of the specified time interval. The time interval can be set or collected by the number of seconds in the first parameter (you need to add # to the front, for example, # # represents the last 5 values). If there is a second, it represents the time shift, for example, to query the average of the first one hours before the day, and the corresponding function is avg (1H,1D)

For example: {Www.zabbix.com:vfs.fs.size[/,free].avg (#5, 10m)}<50g, which means that in the server device, the key value Vfs.fs.size[/,free] in the last 10 minutes, The average value of the last 5 times is less than 50G. Please note that if the value update interval is 1 minutes within 10 minutes, the # # represents a value of 6, 7, 8, 9, 10 minutes, and if the value time update interval is 2 minutes, then the # # represents a value of 2, 4, 6, 8, 10 minutes


3. 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 (note, unlike the Abschange function, is not an absolute value). For string types, 0 means equal values and 1 means different values

For example: {www.zabbix.com:vfs.fs.size[/,free].change (5m)}<0, which represents the last value smaller than the first 5 minutes


4. 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 to the time or the number of collected values (need to precede the values with #). 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, an exact match is used when the value of the monitoring item is an integer (Iteger), and the value of the monitoring item is a float (float) with a tolerance of 0.0000001.

The supported operation (operator) types are as follows

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

For integer and floating-point monitoring items, the EQ (default), NE, GT, GE, lt, le

For string, text, and log monitors, supports like (default), EQ, NE

Example:

COUNT (600): The number of values for the last 10 minutes

Count (600,12): The last 10 minutes value equals the number of 12

Count (600,12, "GT"): The number of the last 10 minutes value is greater than 12

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

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

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


5. Date

Parameters: Ignoring the parameters directly behind

Supported value types: all any

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


6, DayOfMonth

Parameters: Ignoring the parameters directly behind

Supported value types: all any

Description: Returns the current day of the month (numeric range is 1-31)


7, DayOfWeek

Parameters: Ignoring the parameters directly behind

Supported value types: all any

Description: Returns the day ordinal of the current week (numeric range is 1-7)

8, Dalta

Parameter: Seconds or #num

Supported value types: float or int

Description: Returns the difference between the maximum and minimum values for the specified time interval (max ()-min ()). Time interval as the first parameter, which can be seconds or the number of collected values

For example: {Www.zabbix.com:net.if.in[eth0].delta (10m)}>10m, Represents the interface of the device www.zabbix.com eth0 in the last 10 minutes, the difference between the maximum and minimum values is greater than 10MB, that is, the failure occurred


9. diff

Parameters: Ignore

Supported value types: float, int, text, log, string

Description: The return value is 1, which indicates that the most recent value differs from the previous value, and 0 is a different case

For example: {www.zabbix.com:agent.version.diff (0)}>0, which indicates that the agent.version of the device www.zabbix.com is different from the last value and previous value


10, Fuzzytime

Parameter: Seconds

Supported value types: float, int

Description: The return value is 1, which indicates that the time stamp for the monitoring item value is more than www.zabbix.com of n seconds, and 0 is in other cases. Always use System.localtime to check if local time is the same as www.zabbix.com time


11, 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

12. 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 the #num meaning are different

Last (0) equivalence and last (#1)

Last (#3) represents the third value of the recently acquired monitoring item value (not the most recent three values), if the obtained value is a, B, and C three values, in chronological order, A is the first value, B is the second value, and the third value of the table is #3就代 C

This function also supports the second parameter, Time_shift, for example: Last (0,86400) returns the most compact value of a day. If multiple values exist in the same second in the history, Zabbix does not guarantee the exact order of the values

For example: {www.zabbix.com:mysql.ping.last (#3, 5m)}=0, which means that the device www.zabbix.com MySQL 3rd time in the last 5 minutes results in 0, that is, the failure occurred, note that the usage of # # is different from other functions

13, Logeventid

Parameter: string

Supported Value types: Log

Description: Checks whether the EventID of the most recent log entry matches the regular expression. The parameters are regular expressions, POSIX extended styles. When the return value is 0 o'clock, the mismatch is indicated, and 1 indicates a match.


14, 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 o'clock, indicates the default level, n is the specific level (integer, commonly used in Windows event logs)


15, Logsource

Parameter: string

Supported Value types: Log

Description: Checks whether the most recent log entry matches the log source for the parameter. When the return value is 0 o'clock, the mismatch is indicated, and 1 indicates a match. Typically used for Windows event logs monitoring


16. Max

Parameter: Seconds or #num

Supported value types: float or int

Description: Returns the maximum value for the specified time interval. The time interval is the first parameter, which can be the number of seconds or collected values (prefixed by #), starting with Zabbix 1.8.2, which supports the second optional parameter time_shift.

For example: {Www.zabbix.com:net.tcp.service[ftp].max (#3)}=0, indicating that the key in device www.zabbix.com is net.tcp.service[ftp] The maximum number of values obtained in the last three times is 0, which is considered a failure


17, Min

Parameter: Seconds or #num

Supported value types: float and int

Description: Returns the minimum value for the specified time interval. The time interval is the first parameter, which can be the number of seconds or collection values (prefixed by #). The function supports a second optional parameter time_shift

For example: {www.zabbix.com:icmppingloss.min (5m)}>20, which means that the minimum value obtained by the www.zabbix.com device with Icmppingloss within 5 minutes is greater than 20, i.e. the failure occurred

18. NoData

Parameter: Seconds

Supported value types: any

Description: When the return value is 1 o'clock, indicates that the specified interval (interval should not be less than 30s) has not received data, 0 indicates other conditions

For example: {www.zabbix.com:agent.ping.nodata (5m)}=1, which indicates that the agent.ping of the device www.zabbix.com has not received data in the last 5 minutes, and the failure occurred


19. Now

Parameters: Ignore

Supported value types: any

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


20, Prev

Parameters: Ignore

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

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


21, 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 the return value is 1 o'clock, indicates found, 0 for other cases


22. 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 the return value is 1 o'clock, the expression is found, 0 is another condition

For example: {www.zabbix.com:jmx["catalina:type=protocolhandler,port=8080", Comprssin].str (off)}= 1, indicates that the device www.zabbix.com from the key to the string off


23, 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 nearest value a day ago.


24. Sum

Parameter: Seconds or #num

Supported value types: float or int

Description: Returns the sum of the values collected in the specified time interval. The time interval is the first parameter that supports the number of seconds or collection values (starting with #). This function supports Time_shift as a second parameter.


25. Time

Parameters: Ignore

Supported value types: any

Description: Returns the current time, formatted as HHMMSS


Zabbix Monitoring Parameters

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.