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

logrt[]: warning "there are no files matching "....." in "....."" can be misleading

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0.24, 4.0.2, 4.2.0alpha2
    • Agent (G)
    • None
    • Unix, MS Windows
    • Team A
    • Sprint 47, Dec 2018
    • 0.125

    Description

      Steps to reproduce:

      1. Create logrt[] item, e.g. logrt[/home/zabbix/test.log]
      2. Append test record, e,g. echo ABC >> /home/zabbix/test.log
      3. Observe that test record is reported to server.
      4. Append a new test record to a new file, e.g. echo 123 >> /home/zabbix/test.log1
      5. Observe that test record is reported to server.
      6. Delete the new log file /home/zabbix/test.log1.
      7. In agent log file a warning is logged "there are no files matching "test.log" in "/home/zabbix/".

      This is confusing for user because there is a log file test.log, which matches the regexp, it is just skipped as already processed.

      Proposed solution: modify warning message to look like

      there are no recently modified files matching "test.log" in "/home/zabbix/"

      Attachments

        Activity

          People

            asitals Andrejs Sitals
            andris Andris Mednis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: