-
Problem report
-
Resolution: Fixed
-
Trivial
-
5.4.3
-
None
-
Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021), Sprint 83 (Dec 2021)
-
0.25
Looks like shift functions in calculated items and triggers are not working properly (see attached screens).
According to this and this we can use function sum(/host/key,time period<:time shift>) with time shift period of 1d:now/d+1d, i.e. sum(/host/key, 1d:now/d+1d) = 0. Instead Zabbix gives 'invalid second parameter' errors in items and triggers.
Here's text from /var/log/zabbix/zabbix_server.log
34526:20210907:131613.563 item "Zabbix server:test1" became not supported: Cannot evaluate function: invalid second parameter at "sum(/Zabbix server/net.if.in["ens18"],1d:now/d+1d)". 34526:20210907:131714.645 item "Zabbix server:test2" became not supported: Cannot evaluate function: invalid second parameter at "min(/Zabbix server/net.if.in["ens18"],1d:now/d+1d)". 34529:20210907:131815.727 item "Zabbix server:test3" became not supported: Cannot evaluate function: invalid second parameter at "max(/Zabbix server/net.if.in["ens18"],1d:now/d+1d)". 34527:20210907:131816.730 item "Zabbix server:test4" became not supported: Cannot evaluate function: invalid second parameter at "avg(/Zabbix server/net.if.in["ens18"],1d:now/d+1d)".
- is duplicated by
-
ZBX-20274 Time shift definition for today is not working
- Closed