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

Details

    • Problem report
    • Status: Needs documenting
    • Trivial
    • Resolution: Unresolved
    • 5.4.3
    • 5.4.6rc1, 6.0.0alpha4, 6.0 (plan)
    • Server (S)
    • None
    • Team A
    • Sprint 80 (Sep 2021), Sprint 81 (Oct 2021)
    • 0.25

    Description

      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)".
      

      Attachments

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

        Activity

          People

            martins-v Martins Valkovskis
            dj_c00ler Yevhen Loha
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: