User macros with context throws preg_match(): Unknown modifier '0'

XMLWordPrintable

    • Type: Problem report
    • Resolution: False Positive
    • Priority: Trivial
    • None
    • Affects Version/s: 6.2.5
    • Component/s: Frontend (F)
    • Support backlog

      Steps to reproduce:

      Apply a template such as "Cisco IOS SNMP" to host.
      Configure a user macros with context such as in screenshot

       

      {$IFCONTROL:regex:"^(Gi[1-2]\/0\/(1[3-9]|2[0-9]|3[0-6]))$"} => 0

       

      Similar to ZBX-18209

      Result:

      Each time a trigger where regex is False (ie interface name Gi1/0/12) the error shown in screenshot is triggered in "Problems" and "Dashboard".

      No issue if regex is True (trigger is ignored as expected).

      Expected:

      No error, triggers normally. 

            Assignee:
            Zabbix Development Team
            Reporter:
            Julien Lacasse-Roger
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: