[ZBX-4212] Unable to add trigger with item that uses regex syntax inside the item Created: 2011 Oct 06  Updated: 2017 May 30  Resolved: 2011 Nov 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 2.0.0

Type: Incident report Priority: Blocker
Reporter: Dan Rogers Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RedHat 5
Php 5.3.5


Attachments: PNG File Screen Shot 2011-10-06 at 1.03.58 PM.png     Text File zbx_templates_export-1.txt    

 Description   

I have an web page regex item which includes a complex regex. When I try to create a trigger for this item, I get an error (either during template import or manual creation):

Error:
Unexpected symbol "." in trigger function. Check expression part starting from " ).([[:space:]].)+"].count(#1,event service = failed)}=1 " [CTrigger.create -> CTrigger.checkInput]

Here is the trigger:
{Template_App_CCWS:web.page.regexp[0.0.0.0,/ws-callcontrol-1.1/test,{$CCWS_PORT},"[Ss]moke [Tt]est = ([Ss]uccess|[Ww]arning|[Ff]ail).([[:space:]].)+"].count(#1,event service = failed)}=1

I attached the template and screenshot as well.



 Comments   
Comment by Alexey Fukalov [ 2011 Nov 02 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4212

Comment by Alexey Fukalov [ 2011 Nov 03 ]

svn://svn.zabbix.com/trunk 22913

Generated at Thu Apr 25 16:10:12 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.