zabbix can not use awk and alike properly in userparameters if parameters are used

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • 1.8.4
    • Affects Version/s: 1.8.2
    • Component/s: Documentation (D)
    • None
    • Environment:
      -

      UserParameter=my.param[*],awk '$11 == "foo"

      { bar=$5} END {print bar}'

      even if only called with one parameter zabbix replaces any occurence of $1, $2, $3......

      i believe zabbix should not touch at least single-quoted strings, so that i could use:
      UserParameter=my.param[*],awk '$11 == "'$1'" { bar=$5}

      END

      {print bar}

      '

      and $1 would get replaced as it is not in quotes, and i could still use $1,$2... in awk syntax

            Assignee:
            Unassigned
            Reporter:
            svenw
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: