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

Trigger expression tester does not handle long expressions well

XMLWordPrintable

    • Sprint 43, Sprint 44
    • 0.5

      Steps to reproduce:

      Create a rather complex trigger with very long expression.

      This is used as example.

      ({TRIGGER.VALUE}=0 and 
      (((({Template Expression Test:log[test.log,test,,,skip].count(#10,ERROR,like)}/
      ({Template Expression Test:log[test.log,test,,,skip].count(#10,ERROR,like)}+
      {Template Expression Test:log[test.log,test,,,skip].count(#10,PARSED,like)}))
      *100)
      +
      (({Template Expression Test:log[test2.log,test,,,skip].count(#10,ERROR,like)}/
      ({Template Expression Test:log[test2.log,test,,,skip].count(#10,ERROR,like)}+
      {Template Expression Test:log[test2.log,test,,,skip].count(#10,PARSED,like)}))
      *100))/2)
      >49)
      or
      ({TRIGGER.VALUE}=1 and 
      (((({Template Expression Test:log[test.log,test,,,skip].count(#10,ERROR,like)}/
      ({Template Expression Test:log[test.log,test,,,skip].count(#10,ERROR,like)}+
      {Template Expression Test:log[test.log,test,,,skip].count(#10,PARSED,like)}))
      *100)
      +
      (({Template Expression Test:log[test2.log,test,,,skip].count(#10,ERROR,like)}/
      ({Template Expression Test:log[test2.log,test,,,skip].count(#10,ERROR,like)}+
      {Template Expression Test:log[test2.log,test,,,skip].count(#10,PARSED,like)}))
      *100))/2)
      >0)

      Open the Expression constructor and click Test

      Result:

      The long arithmetical parts of the trigger remain in a single line and the trigger evaluation result is not visible. 

      The evaluation results (TRUE, FALSE) are visible in the Inspect element section of the browser though. 

      Expected:
      Trigger expression results displayed in some way. 

      Might be caused by this: ZBXNEXT-4127

        1. image-2018-09-17-16-10-13-763.png
          75 kB
          Ingus Vilnis
        2. Selection_065.png
          138 kB
          Larisa Grigorjeva

            agriscenko Andrejs Griščenko
            ingus.vilnis Ingus Vilnis
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: