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

Invalid pattern (regexp) in log[] and logrt[] items produces no error messages, behaves like never matching

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.8.20rc1, 2.0.11rc1, 2.2.2rc1
    • Fix Version/s: 3.2.0alpha2
    • Component/s: Agent (G)
    • Labels:
    • Environment:
      GNU/Linux

      Description

      Create a one-line test log
      $ cat /home/zabbix20/test_logs/test.log
      error1

      Create a new log[] item with invalid pattern "error.*\":
      log[/home/zabbix20//test_logs/test.log,error.*\,,]

      Agentd does not report anything to server as if there was no matching records in the log file. No errors about invalid regexp are logged.

      Correct the invalid pattern to
      log[/home/zabbix20//test_logs/test.log,error.*,,]

      Now the record matches and is reported to server.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              andris Andris Mednis
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: