![]() ![]() The number of unique values within the defined evaluation period. Also note that for large numbers difference in decimal (stored in database) and binary (used by Zabbix server) representation may affect the 4th decimal digit.Ĭount(/host/key,10m) #the values for the last 10 minutes until now count(/host/key,10m, "like", "error") #the number of values for the last 10 minutes until now that contain 'error' count(/host/key,10m,12) #the number of values for the last 10 minutes until now that equal '12' count(/host/key,10m, "gt",12) #the number of values for the last 10 minutes until now that are over '12' count(/host/key,#10, "gt",12) #the number of values within the last 10 values until now that are over '12' count(/host/key,10m:now-1d, "gt",12) #the number of values between 24 hours and 10 minutes and 24 hours ago from now that were over '12' count(/host/key,10m, "bitand", "6/7") #the number of values for the last 10 minutes until now having '110' (in binary) in the 3 least significant bits count(/host/key,10m:now-1d) #the number of values between 24 hours and 10 minutes and 24 hours ago from now countunique(/host/key,(sec|#num),) For the purpose of regexp matching, float values will always be represented with 4 decimal digits after '.'. In case of global regular expressions case sensitivity is inherited from global regular expression settings. With regexp or iregexp as the third parameter, the fourth pattern parameter can be an ordinary or global (starting with regular expression.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 bitand as the third parameter, the fourth pattern parameter can be specified as two numbers, separated by '/': number_to_compare_with/mask.Float items match with the precision of 2.22e-16 if database is not upgraded the precision is 0.000001.pattern - the required pattern (string arguments must be double-quoted).Iregexp - case-insensitive match of the regular expression given in pattern Regexp - case-sensitive match of the regular expression given in pattern Like - matches if contains pattern (case-sensitive) The number of values within the defined evaluation period. Numeric difference will be calculated, as seen with these incoming example values ('previous' and 'latest' value = difference):Ĭhangecount(/host/key,1w) #the number of value changes for the last week until now changecount(/host/key,#10, "inc") #the number of value increases (relative to the adjacent value) among the last 10 values changecount(/host/key,24h, "dec") #the number of value decreases (relative to the adjacent value) for the last 24 hours until now count(/host/key,(sec|#num),).Supported value types: Float, Integer, String, Text, Log.įor strings returns: 0 - values are equal 1 - values differ. The amount of difference between the previous and latest value. /host/key and (sec|#num) parameters must never be quoted.Function-specific parameters are described with each function.Optional function parameters (or parameter parts) are indicated by.Function parameters are separated by a comma.Some general notes on function parameters: The following script will use Zabbix API to list all Proxy servers in your instance and convert the output to JSON format which is suitable for low-level discovery. # if your server is located on (web root) use # if your server is located on (default) use # enter bash environment under user 'zabbix' ![]() # owner for the dir must be user 'zabbix' # if directory do not exist then create it # check what is a default 'home' location for user 'zabbix'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |