filter_evaluate_and_or_andor() missing opening brackets when using andor

XMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 6.2.6
    • Component/s: Server (S)
    • None
    • Environment:
      proxmox container debian 11

      Steps to reproduce:

      1. setup template with lld macros and filter with and/or 
      2. create new host using the LLD filter with and/or
      3. set debug level to 4 or just wait for the discovery process to finish and then see the issue on the discovery page or in the zabbix_server.log file
      4. i guess using any filter with and or will result in this error

      Result:

      zbx_evaluate() expression:'(0) and 0 or 1)' Cannot evaluate expression: unexpected token at ")"

      Expected:

      NO ERROR, seems like either the filter or zbx_evaluate() skip the opening bracket, when i switch to and only in the filter there is no issue.

       

            Assignee:
            Zabbix Support Team
            Reporter:
            t-np
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: