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

Calculated item; item key containing ')' breaks parsing. (occurs with e.g. perf_counter)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.2.1
    • Server (S)
    • None

      Formula parsing breaks if an item key contains ")", perhaps other chars as well.

      • zbx-web will accept the formula on form submission.
      • Next calculation run an error will occur, item status will become 'not supported'

      In this example, the closing ")" of the perfmon_counter (instance) is interpreted as the closing ")" of last().
      Formula:
      last( host:perf_counter["\some.perfmon.context(instance)\metric"] ) + last( host:some.other.key )
      Error:
      Cannot evaluate function [last()]: item [host:perf_counter["\some.perfmon.context(instance] not found

      I did try to add escaping & additional quoting, doesn't seem to help.

            Unassigned Unassigned
            xs Tom Duijf (xs-)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: