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) or #num - 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. |