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

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

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

              Dates

                Created:
                Updated:
                Resolved: