[ZBX-12380] Trigger function regex() incorrectly matches regular expressions Created: 2017 Jul 14  Updated: 2018 Jul 10  Resolved: 2018 Jul 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.20rc1, 3.0.11rc1, 3.2.8rc1, 3.4.0alpha2
Fix Version/s: 3.0.20rc1, 3.4.12rc1, 4.0.0alpha9, 4.0 (plan)

Type: Problem report Priority: Minor
Reporter: Glebs Ivanovskis (Inactive) Assignee: Michael Veksler
Resolution: Fixed Votes: 0
Labels: regexps, trigger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File problems.png     PNG File trigger.png     PNG File values.png    
Team: Team A
Sprint: Sprint 36, Sprint 37
Story Points: 1

 Description   

I have a trapper item of type Text and a simple trigger attached to it. Here is my trigger configuration:

According to my understanding this regular expression should match any string containing "a" or "b" or "c". But for some reason it does not fire when I send "a", "b" or "c". It only fires when I send "abc":

In emails I get:

Trigger: Last value matches regexp
Trigger status: PROBLEM
Trigger severity: Not classified
Trigger URL:

Item values:

1. Text trapper (test:text.trapper): abc
2. UNKNOWN (UNKNOWN:UNKNOWN): UNKNOWN
3. UNKNOWN (UNKNOWN:UNKNOWN): UNKNOWN

Original event ID: 164

and

Trigger: Last value matches regexp
Trigger status: OK
Trigger severity: Not classified
Trigger URL:

Item values:

1. Text trapper (test:text.trapper): a
2. UNKNOWN (UNKNOWN:UNKNOWN): UNKNOWN
3. UNKNOWN (UNKNOWN:UNKNOWN): UNKNOWN

Original event ID: 164



 Comments   
Comment by Michael Veksler [ 2018 Jul 05 ]

Available in:

  • 3.0.20rc1 r82526
  • 3.4.12rc1 r82527
  • 4.0.0alpha9 (trunk) r82531
Generated at Thu Mar 28 23:42:51 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.