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

filter_evaluate_and_or_andor() missing opening brackets when using andor

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 6.2.6
    • Server (S)
    • None
    • 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.

       

            zabbix.support Zabbix Support Team
            t-np t-np
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: