-
Problem report
-
Resolution: Fixed
-
Major
-
5.0.43, 6.0.19, 6.0.33, 6.4.18, 7.0.3
-
None
-
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]
- caused by
-
ZBXNEXT-3205 Add support for wildcards and / or global regular expressions in context macros
- Closed
- is duplicated by
-
ZBX-25123 Macro set at template level generates issues with frontend
- Closed