Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-4189

Preprocessing: optional regex, case insensitive regex

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 4.2.0
    • 3.4.3
    • Server (S)
    • None

      It would be good to extend preprocessor with the following:
      1. Case insensitive regexp
      2. Optional regexp: the regexp that does not make item unsupported if pattern does not match
      3. Allow ${x} syntax for capture patterns

      This way i.e. conversions from '300M'/'100G'/'...' to certain bps values can be performed like in the following row of transformations:

      OPTIONAL CASE-INSENSITIVE ^(\d+)G$ ${1}000000000
      OPTIONAL CASE-INSENSITIVE ^(\d+)M$ ${1}000000
      OPTIONAL CASE-INSENSITIVE ^(\d+)K$ ${1}000
      

            palivoda Rostislav Palivoda
            Alex/AT Alexey Asemov
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: