Zabbix Documentation 3.0

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:appendix:triggers:functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:appendix:triggers:functions [2020/02/18 14:13]
martins-v describing time shift directly rather than giving a reference
manual:appendix:triggers:functions [2020/02/18 14:23] (current)
martins-v you may use the 'count' function with the like operator to count string values that match a pattern
Line 78: Line 78:
 ^ |||| ^ ||||
 |**str** (<​pattern>,<​sec<​nowiki>​|</​nowiki>#​num>​) ​ ^^^^ |**str** (<​pattern>,<​sec<​nowiki>​|</​nowiki>#​num>​) ​ ^^^^
-^ |Finding a string in the latest (most recent) value. ​ |**pattern** (optional) - required string\\ **sec** or **#num** (optional) - maximum evaluation period<​sup>​**[[#​footnotes|1]]**</​sup>​ in seconds or in latest collected values (preceded by a hash mark). ​ In this case, more than one value may be processed. ​ |Supported value types: str, text, log\\ \\ Returns:\\ 1 - found\\ 0 - otherwise\\ \\ If more than one value is processed, '​1'​ is returned if there is at least one matching value.\\ \\ This function is case-sensitive. ​ |+^ |Finding a string in the latest (most recent) value. ​ |**pattern** (optional) - required string\\ **sec** or **#num** (optional) - maximum evaluation period<​sup>​**[[#​footnotes|1]]**</​sup>​ in seconds or in latest collected values (preceded by a hash mark). ​ In this case, more than one value may be processed. ​ |Supported value types: str, text, log\\ \\ Returns:\\ 1 - found\\ 0 - otherwise\\ \\ If more than one value is processed, '​1'​ is returned if there is at least one matching value.\\ \\ This function is case-sensitive.\\ \\ //Tip//: You may use the '​count'​ function with the //like// operator to count string values that match a pattern.  |
 ^ |||| ^ ||||
 |**strlen** (<​sec<​nowiki>​|</​nowiki>#​num>,<​time_shift>​) ​ ^^^^ |**strlen** (<​sec<​nowiki>​|</​nowiki>#​num>,<​time_shift>​) ​ ^^^^