Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-19924

Time shift functions in calculated items and triggers (invalid second parameter)

XMLWordPrintable

    • Team A
    • 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)".
      

        1. zbx1.png
          29 kB
          Yevhen Loha
        2. zbx2.png
          29 kB
          Yevhen Loha
        3. zbx3.png
          33 kB
          Yevhen Loha

            vso Vladislavs Sokurenko
            dj_c00ler Yevhen Loha
            Team A
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: