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

Increase size of MAX_STRING_LEN ?

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.11, 2.0.0rc1
    • 1.6.7
    • Agent (G)
    • None

      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.

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

              Created:
              Updated:
              Resolved: