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

Trigger expression with a macro with regular expression context don't resolve at Problems screen

XMLWordPrintable

    • S24-W36/37, S24-W38/39, S24-W40/41
    • 1

      1. Create a user macro with regular expression context, for example:

      {$VFS.FS.PUSED.MAX.CRIT:regex:"^\/u0[1-9]+"}
      

      2. Wait for the trigger firing
      3. Try to see Event details at Problems
      4. Result:

      preg_match(): Unknown modifier '0' [tr_events.php:171 → make_trigger_details() → CMacrosResolverHelper::resolveTriggerExpressions() → CMacrosResolver->resolveTriggerExpressions() → CMacrosResolverGeneral->getUserMacros() → CMacrosResolverGeneral->getHostUserMacros() → CMacrosResolverGeneral->getHostUserMacros() → CMacrosResolverGeneral->getHostUserMacros() → preg_match() in include/classes/macros/CMacrosResolverGeneral.php:2647]
      

        1. Screenshot 2023-07-31 at 09.48.22.png
          102 kB
          Edgar Akhmetshin
        2. Screenshot 2023-07-31 at 09.48.44.png
          234 kB
          Edgar Akhmetshin
        3. server-frontend-macro-resolving.png
          23 kB
          Alexander Vladishev

            esekace Eliza Sekace
            Oleg_Kostikov Oleg Kostikov
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 7.5h
                7.5h