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

Frontend trigger expression parser doesn't like macro in simple check item

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.8.13
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Labels:
      None

      Description

      1. define host-level macro: {$PORT}
      2. create simple check item with key: http,{$PORT}
      3. create trigger referencing this item: {host:http,{$PORT}.max(#6)}=0, try to save it and get the error:
      ERROR: Cannot add trigger
      Incorrect item key "http,{$PORT" is used in expression. Incorrect simple check parameter.
      Check expression part starting from "{test:http,{$PORT}.max(#6)}=0".

      if I remove the macro from item key, create the trigger, and put macro back in, server evaluates trigger expression properly. thus, it's an error in frontend expression parser.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              alix alix
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: