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

logsource() function in calculated does not work properly

XMLWordPrintable

    • Team A
    • Sprint 76 (May 2021)
    • 0.25

      Steps to reproduce:

      • Create HOST with two items:
        trap with type: log
        calculated item with formula: logsource(trap,pattern)
      • (Or import attached XML zbx_export_hosts(8).xml)
      • run server and sent to trapper value: "test"
      • go to Latest data and observe that:

      Result:
      Calculated item became unsupported with error:

       Cannot evaluate expression: "Cannot evaluate function "logsource(pattern)": invalid regular expression.". 

      Expected:
      Calculated item should not match pattern and return 0

            dgoloscapov Dmitrijs Goloscapovs
            lgrigorjeva Larisa Grigorjeva
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: