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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.10
    • Fix Version/s: 2.0.0
    • Component/s: Server (S)
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: