-
Documentation task
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
ZabbixServer 4.0.11 , 4.0.16
ZabbixAgent 4.0.11 , 4.0.16
-
Sprint 59 (Dec 2019), Sprint 60 (Jan 2020)
Case:
Time difference between ZabbixServer and ZabbixAgent
This case, triggers doesn't firing nodata function.
Steps to reproduce:
Envriment:
ZabbixServer 4.0.16 and 4.0.11
ZabbixAgent 4.0.16 and 4.0.11 (Time is set 10 minutes ago than ZabbixServer)
ItemSample:
Itemkey log[/tmp/sample.log]
Interval 1sec
TriggerSample:
log[/tmp/sample.log].nodata(60)}=0
SQL:
+--------+------------+-----------+--------+----------+------------------------------+------------+-----------+ | itemid | clock | timestamp | source | severity | value | logeventid | ns | +--------+------------+-----------+--------+----------+------------------------------+------------+-----------+ | 28512 | 1577070641 | 0 | | 0 | Sun Dec 22 22:10:41 EST 2019 | 0 | 81929799 | | 28512 | 1577070737 | 0 | | 0 | Sun Dec 22 22:12:16 EST 2019 | 0 | 122892444 | | 28512 | 1577070908 | 0 | | 0 | Sun Dec 22 22:15:07 EST 2019 | 0 | 202081283 | +--------+------------+-----------+--------+----------+------------------------------+------------+-----------+
Logs:
4109:20191222:222550.496 trapper got '{"request":"agent data","session":"eb605b9007bbb9f86a6c7ffe730c049d","data":[{"host":"debug-agent","key":"log[/tmp/sample.log]","value":"Sun Dec 22 22:15:07 EST 2019","lastlogsize":232,"id":5,"clock":1577070908,"ns":202081283}],"clock":1577070908,"ns":202711349}' 4090:20191222:222551.371 query [txnlev:1] [insert into history_log (itemid,clock,ns,timestamp,source,severity,value,logeventid) values (28512,1577070908,202081283,0,'',0,'Sun Dec 22 22:15:07 EST 2019',0);] 4090:20191222:222551.380 In zbx_evaluate_item_functions() funcs_num:1 4090:20191222:222551.380 In evaluate_function() function:'debug-agent:log[/tmp/sample.log].nodata(60)' 4090:20191222:222551.380 In evaluate_NODATA() 4090:20191222:222551.380 In get_function_parameter_int() parameters:'60' Nparam:1 4090:20191222:222551.380 In substitute_simple_macros() data:'60' 4090:20191222:222551.380 get_function_parameter_int() type:sec value:60 4090:20191222:222551.381 End of get_function_parameter_int():SUCCEED 4090:20191222:222551.381 In zbx_vc_get_values() itemid:28512 value_type:2 seconds:60 count:1 sec:1577071551 ns:381038586 4090:20191222:222551.381 End of zbx_vc_get_values():SUCCEED count:0 cached:1 4090:20191222:222551.381 End of evaluate_NODATA():SUCCEED 4090:20191222:222551.381 End of evaluate_function():SUCCEED value:'1' 4090:20191222:222551.381 End of zbx_evaluate_item_functions()
For instance:
Occurs when NTP is out of sync.
Result:
log[/tmp/sample.log].nodata(60)}=0 doesn't work
Expected:
nodata trigger work