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

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.2.0alpha2
    • 1.8.20rc1, 2.0.11rc1, 2.2.2rc1
    • Agent (G)
    • 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.

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

              Created:
              Updated:
              Resolved: