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

log_size variable is never decreased

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • 5.0.32, 6.0.14, 6.2.8, 6.4.0, 7.0.0alpha1
    • Proxy (P), Server (S)
    • None

      DEV-2387 introduced a log_size varibale which is never decreased, so after some time of working zabbix is starting throwing errors

      https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/libs/zbxembed/zabbix.c#81{}

      Steps to reproduce:

      1. Use function Zabbix.Log(); in any JavaScript preprocessing, like in template "Asterisk by HTTP"

      Result:

      Errors in logs:
      <time> error reason for "<host>:asterisk.get_stats" changed: Preprocessing failed for: HTTP/1.1 200 OK..Server: <server>..Date: <date>..Cache-Control: n...
      1. Failed: Error: log exceeds the maximum size of 8388608 bytes.
      at [anon] (zabbix.c:84) internal
      at [anon] () native strict preventsyield
      at [anon] (function:10)
      at [anon] (function:256) preventsyield

            zabbix.dev Zabbix Development Team
            us3241 Kanstantsin Maksimau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: