"[" and "]" brackets are not allowed in items

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Minor
    • None
    • Affects Version/s: 1.8.8
    • Component/s: Frontend (F)

      We tried to create "External check" item with the following key:

      http_extend[-t {$TIMEOUT} -u "http://{$HOST}/monitoring/monitoring.php?m=pearcache_time" -r '.*DATA: ([0-9a-f]+);']
      http_extend[-t {$TIMEOUT} -u "http://{$HOST}/monitoring/monitoring.php?m=pearcache_time" -r ".*DATA: ([0-9a-f]+)"]
      

      Zabbix refuses to store that key because of the appearance of the bracket - it complains :

      ERROR: Cannot update item
          Error in item key: incorrect usage of bracket symbols. '+' found after final bracket. 
      

      Especially for regexes this might be very useful

      The zabbix-frontend should ignore brackets in the parameters of the items....

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

              Created:
              Updated:
              Resolved: