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

Log files are slow processed by Agent on Unix

    Details

      Description

      Sometimes Zabbix agent slow process log files because of some of used functions and logic (agent scans directory for each iteration and send only one line from log file) are not quite good.

      Some of information which should help improve performance of log monitoring on Linux systems:

      1. opendir sometimes can be slow. We can use getdents directly: http://man7.org/linux/man-pages/man2/getdents.2.html
      2. Instead of checking folder every time we can use notify for Linux OSs: http://www.ibm.com/developerworks/linux/library/l-inotify/index.html?ca=drs- and http://en.wikipedia.org/wiki/Inotify

      Most of interesting is second point. With it we can wait changes of specified directory instead of scan directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dotneft Alexey Pustovalov
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: