![]() => fuzzytime(60)=0 → detect a problem if time difference is over 60 seconds Usually used with system.localtime to check that local time is in sync with local time of Zabbix server.Ĭan be used also with key to check that file didn't get updates for long time. The time_shift parameter is supported since Zabbix 1.8.2.Ĭhecking if last and previous values differ.Ĭhecking how much an item timestamp value differs from the Zabbix server time.Ġ - if difference between item timestamp value and Zabbix server timestamp is over T seconds Sec or #num - maximum evaluation period 1 in seconds or in latest collected values specified (preceded by a hash mark) This function is supported since Zabbix 1.8.5.ĭay of week in range of 1 to 7 (Mon - 1, Sun - 7).ĭifference between the maximum and minimum values within the defined evaluation period ('max()' minus 'min()'). The time_shift parameter and string operators are supported since Zabbix 1.8.2. The #num parameter is supported since Zabbix 1.6.1. => count(600,86400) → number of values for preceding 10 minutes up to 24 hours ago => count(600,6/7,band) → number of values for last 10 minutes having '110' (in binary) in the 3 least significant bits. => count(600,12,gt,86400) → number of values for preceding 10 minutes up to 24 hours ago that were over '12' => count(#10,12,gt) → number of values within last 10 values that are over '12' => count(600,12,gt) → number of values for last 10 minutes that are over '12' => count(600,12) → number of values for last 10 minutes that equal '12' => count(10m,"error",eq) → number of values for last 10 minutes that equal 'error' => count(600) → number of values for last 10 minutes If number_to_compare_with and mask are equal, only the mask need be specified (without '/'). If the result of "bitwise AND" is equal to number_to_compare_with, the value is counted. ![]() count() calculates "bitwise AND" from the value and the mask and compares the result to number_to_compare_with. With band as third parameter, the second parameter can be specified as two numbers, separated by '/': number_to_compare_with/mask. Supported value types: float, integer, string, text, logįloat items match with the precision of 0.000001. ![]() Like (default), eq, ne are supported for string, text and log items Like - matches if contains pattern (case-sensitive)īand - bitwise AND (supported since Zabbix 2.2.0).Įq (default), ne, gt, ge, lt, le, band are supported for integer itemsĮq (default), ne, gt, ge, lt, le are supported for float items Number of values within the defined evaluation period. The amount of difference between last and previous values. This function is supported since Zabbix 2.2.0. => band(,20)=16 → 3rd bit not set and 5th bit set. => band(,12)=8 or band(,12)=4 → 3rd or 4th bit set, but not both at the same time For example, checking for the 3rd bit is done by comparing to 4, not 100. Take note that #num works differently here than with many other functions (see last()).Īlthough the comparison is done in a bitwise manner, all the values must be supplied and are returned in decimal. Sec (ignored, equals #1) or #num (optional) - the Nth most recent value Value of "bitwise AND" of an item value and mask. It is useful when there is a need to compare the current average value with the average value time_shift seconds back. ![]() The time_shift parameter is supported since Zabbix 1.8.2. => avg(3600,86400) → average value for an hour one day ago. => avg(#5) → average value for the five latest values Time_shift (optional) - evaluation point is moved the number of seconds back in time Sec or #num - maximum evaluation period 1 in seconds or in latest collected values (preceded by a hash mark) Supported value types: float, int, str, text, logĪverage value of an item within the defined evaluation period. The amount of absolute difference between last and previous values. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |