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

item value contains only first line of external script output

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.0
    • 1.8.10
    • Server (S)

      Item value contains only first line of the external script output, even if value type text. If first line of value from external check is empty, item switched to unsupported.
      IMHO it should contain full external script output, at least if type of information is text. Full value is important for report. Usually it's not a problem to output only first line by the script itself if the rest is not needed.

      checks_external.c, lines 82-84:

      /* we only care about the first line */
      if (NULL != (p = strchr(buf, '\n')))
      *p = '\0';

      I think it well be good to add "&& item->value_type != ZBX_TYPE_TEXT && item->value_type != ZBX_TYPE_BLOB" to the "if" condition.

            Unassigned Unassigned
            pgulchuk Pavel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: