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

Details

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 5.4.4
    • None
    • None
    • RHEL 8.4
    • Team I

    Description

      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"

      Attachments

        Activity

          People

            agavrilovs Aleksandrs Petrovs-Gavrilovs
            bataclan Josh W
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: