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

The find() function does not return the correct result, when using a regex, in a Trigger.

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • 6.0 (plan)
    • 5.4.4
    • Server (S)
    • RHEL 8.4
    • Sprint 84 (Jan 2022)
    • 1

      Description:
      We have a Trigger that uses the find() function.  The Trigger is firing when it should not.

      Here is the expression in the Trigger:

      find(/VZC EAAA/snmptrap[^\h*trap_oid\h+FNKSBRTR-MIB::funkSbrTrapRealmOutOfService\b],,"regexp","\h+FNKSBRTR-MIB::funkSbrTrapVarFailedSystemName\S*\h+\Wsandvine_test\b")=0

      Here is the value in the Log item:

      2021-10-14 18:14:13 TRAP INFO:
        host        xxxxxxxx1-vti-aaa1 (10.xx.xx.xx)  (uptime: 364 days, 14:59:29.33)
        trap_oid    FNKSBRTR-MIB::funkSbrTrapRealmOutOfService
        net_path    UDP: [10.xx.xx.xx]:60135->[10.xx.xx.xx]:162
      VARIABLES:
        FNKSBRTR-MIB::funkSbrTrapVarComp.0                accounting (2)
        FNKSBRTR-MIB::funkSbrTrapVarSev.0                 warning (2)
        FNKSBRTR-MIB::funkSbrTrapVarFailedSystemName.0    "sandvine_test"

            vso Vladislavs Sokurenko
            bataclan Josh W
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: