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

logrt re-reads old lines

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Reopened
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:
      None
    • Environment:
      Zabbix Server 5.0.1
      Zabbix agent 2.2.9 on AIX 6.1 (6100-09-04-1441)

      Description

      Steps to reproduce:

      1. LLD creates a logrt item with a regexp matching only one rotated log file (screenshot 2)
      2. Key : logrt["/m/0190/s/xebiz/tux/^ULOG.[0-9]{6}$","_CAT:[0-9]+: ERROR",,,skip] (screenshot 1)
      3. Write entries

      Result:

      Sometimes, the file is re-read, but I don't know why or how... (screenshot 3)

      The log size is always increasing (screenshot 5) and the log directory last modification date tends to indicate that the log hasn't been recreated (screenshot 6).

      these entries are indeed not actually from 08:00:53 (screenshot 4)

      Agent logfile is full of this error :

      tr: Invalid combination of options and Strings.tr: Invalid combination of options and Strings.Usage: tr [ [-c|-C] | -[c|C]ds | -[c|C]s | -ds | -s ] [-A] String1 String2       tr { -[c|C]d | -[c|C]s | -d | -s } [-A] String1usage: grep [-r] [-R] [-H] [-L] [-E|-F] [-c|-l|-q] [-insvxbhwyu] [-p[parasep]] -e pattern_list... [-f pattern_file...] [file...]usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwyu] [-p[parasep]] [-e pattern_list...] -f pattern_file... [file...]usage: grep [-E|-F] [-c|-l|-q] [-insvxbhwyu] [-p[parasep]] pattern_list [file...]

      Expected:
      Old entries not re-read.
      See attached patch file...

        Attachments

        1. 1- logrt_item_key.png
          14 kB
          FK
        2. 2- ulog_last_file.png
          13 kB
          FK
        3. 3- logrt_item_datas.png
          32 kB
          FK
        4. 4- ULOG.012821.png
          39 kB
          FK
        5. 5- last_ulog_file_size.png
          20 kB
          FK
        6. 6- last_ulog_file_creationTime.png
          1 kB
          FK
        7. 7- logrt_item_datas_20210205.png
          37 kB
          FK
        8. 8-20210205_extract_zabbix_agentd.log
          7 kB
          FK
        9. 9-20210205_extract_zabbix_agentd.png
          78 kB
          FK
        10. zabbix_agentd_debug.log
          1.17 MB
          FK

          Activity

            People

            Assignee:
            zalex_ua Oleksii Zagorskyi
            Reporter:
            zabbixuserfk FK
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: