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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: