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

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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 1.8.8
    • 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....

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

              Created:
              Updated:
              Resolved: