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

Incorrect trigger calculation with function last()

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 6.0.0beta1
    • None
    • Server (S)
    • None
    • Zabbix 6.0.0alpha8 (latest master)
    • Team C
    • Sprint 82 (Nov 2021), Sprint 83 (Dec 2021)

    Description

      Steps to reproduce:

      1. Create item as system.sw.os from default template or any other item of type character with some large update interval
      2. Create trigger like: last(/Zabbix server/system.sw.os,#1)<>last(/Zabbix server/system.sw.os,#2) and length(last(/Zabbix server/system.sw.os))>0
        1. This is how it is defined in the default template for trigger "Operating system description has changed"

      Result:
      This trigger will fire after collecting first value

      Expected:
      It must not fire as we have no second value to evaluate last(#2)

      Attachments

        Activity

          People

            dotneft Alexey Pustovalov
            alexei Alexei Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: