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

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.8.13
    • Frontend (F)
    • None

      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.

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

              Created:
              Updated:
              Resolved: