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

    • Team D
    • 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

            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: