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

Increase size of MAX_STRING_LEN ?

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.7
    • Fix Version/s: 1.8.11, 2.0.0rc1
    • Component/s: Agent (G)
    • Labels:
      None

      Description

      one of my proc.num is failing to match the process arguments because the cmdline (in /proc/???/cmdline) is longer than 2048 chars set in MAX_STRING_LEN (common.h). That's the first process like that, but I expect other in the future. The reason of this lengthy cmdline is because it's a java process with a lot of jar file in the classpath and all of them uses a full path....

      Is there a way to increase (locally for the zabbix agent or globally) this define so that the test is working ?
      Assuming I patch myself the code (looks trivial enough to patch), what bad consequence may I expect in return ?

      Thanks.
      J.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              fischaz Johan Fischer
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: