Zabbix Documentation 4.2

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

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
Next revision
Previous revision
Last revision Both sides next revision
manual:appendix:triggers:functions [2019/01/10 07:08]
martins-v updating description of 'fuzzytime'
manual:appendix:triggers:functions [2019/07/08 05:27]
martins-v 'sum' is evaluated starting with the first received value
Line 39: Line 39:
 ^ |||| ^ ||||
 |**fuzzytime** (sec) ^^^^ |**fuzzytime** (sec) ^^^^
-^ |Checking how much an item value (as timestamp) differs from the Zabbix server time.  |**sec** - seconds ​ |Supported value types: float, int\\ \\ Returns:\\ 1 - Difference ​between item value (as timestamp) and Zabbix server timestamp is less than or equal to T seconds\\ 0 - otherwise.\\ \\ Usually used with the '​system.localtime'​ item to check that local time is in sync with the local time of Zabbix server. //Note// that '​system.localtime'​ must be configured as a passive check.\\ Can be used also with vfs.file.time[/​path/​file,​modify] key to check that file didn't get updates for long time.\\ \\ Example:\\ => fuzzytime(60)=0 -> detect a problem if time difference is over 60 seconds ​ |+^ |Checking how much an item value (as timestamp) differs from the Zabbix server time.  |**sec** - seconds ​ |Supported value types: float, int\\ \\ Returns:\\ 1 - difference ​between item value (as timestamp) and Zabbix server timestamp is less than or equal to T seconds\\ 0 - otherwise\\ \\ Usually used with the '​system.localtime'​ item to check that local time is in sync with the local time of Zabbix server. //Note// that '​system.localtime'​ must be configured as a [[:​manual:​appendix:​items:​activepassive#​passive_checks|passive check]].\\ Can be used also with vfs.file.time[/​path/​file,​modify] key to check that file didn't get updates for long time.\\ \\ Example:\\ => fuzzytime(60)=0 -> detect a problem if time difference is over 60 seconds ​ |
 ^ |||| ^ ||||
 |**iregexp** (<​pattern>,<​sec<​nowiki>​|</​nowiki>#​num>​) ​ ^^^^ |**iregexp** (<​pattern>,<​sec<​nowiki>​|</​nowiki>#​num>​) ​ ^^^^
Line 84: Line 84:
 ^ |||| ^ ||||
 |**sum** (sec<​nowiki>​|</​nowiki>#​num,<​time_shift>​) ​ ^^^^ |**sum** (sec<​nowiki>​|</​nowiki>#​num,<​time_shift>​) ​ ^^^^
-^ |Sum of collected values within the defined evaluation period. ​ |**sec** or **#num** - evaluation period in seconds or in latest collected values (preceded by a hash mark)\\ **time_shift** (optional) - see avg()  |Supported value types: float, int\\ \\ The ''​time_shift''​ parameter is supported since Zabbix 1.8.2. ​ |+^ |Sum of collected values within the defined evaluation period. ​ |**sec** or **#num** - maximum ​evaluation period in seconds or in latest collected values (preceded by a hash mark)\\ **time_shift** (optional) - see avg()  |Supported value types: float, int\\ \\ The function is evaluated starting with the first received value.\\ \\ The ''​time_shift''​ parameter is supported since Zabbix 1.8.2. ​ |
 ^ |||| ^ ||||
 |**time** ​ ^^^^ |**time** ​ ^^^^