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

Log monitoring in the first time "No such file or directory" on skip mode

XMLWordPrintable

    • Sprint 19, Sprint 21, Sprint 22, Sprint 23, Sprint 24
    • 2

      When using "skip" mode, be able to check "No such file".
      Currently, logs will be skipped when creating file.

      Steps to reproduce:
      1. Create a new log item key (No file with skip mode)

      - log[/tmp/logtest.log,,,,skip,]
      

      Zabbix logs occurred in 2 minutes active check

      active check "log[/tmp/logtest.log,,,,skip,]" is not supported: Cannot obtain information for file "/tmp/logtest.log": [2] No such file or directory
      

      2. Create a new file for monitoring

      echo Error_1 > /tmp/logtest.log / Create a new log
      echo Error_2 >> /tmp/logtest.log
      echo Error_3 >> /tmp/logtest.log
      

      "No such file" error disappears. but error_1~3 does not contained history data (skipped)

      3. Remove "/tmp/logtest.log" file.
      "No such file" error will start showing again.

      4. Recreate a new file "/tmp/logtest.log"

      echo Error_4 > /tmp/logtest.log?/ Create a new file
      echo Error_5 >> /tmp/logtest.log
      echo Error_6 >> /tmp/logtest.log
      

      Start collecting logs from here.

            andris Andris Mednis
            JKKim Kim Jongkwon
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: