[ZBX-3698] Wrong parsing of expression in log wizard Created: 2011 Apr 07  Updated: 2017 May 30  Resolved: 2011 Apr 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 1.8.4
Fix Version/s: 1.8.5rc1

Type: Incident report Priority: Trivial
Reporter: Konstantin Buravcov (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File trigger_log_wizard_fix.patch    
Issue Links:
Duplicate

 Description   

Create a trigger with expression like this:

((

{HostD:log[/var/log/messages].iregexp(error)}

)#0) & ((

{HostD:log[/var/log/messages].iregexp("CPr::updateLicenseStatus\(\)")}

)=0)

Open it in log wizard and observe:

Incorrect count of quotes in expression
Check expression part starting from " ((

{HostD:log[/var/log/messages].iregexp(error)}

)#0) & ((

{HostD:log[/var/log/messages].iregexp("CPr::updateLicenseStatus\(\"))}

)=0) "



 Comments   
Comment by Konstantin Buravcov (Inactive) [ 2011 Apr 07 ]

Problem persisted when expression had internal parentheses.

Fixed in ZBX-3698

Comment by Alexey Fukalov [ 2011 Apr 07 ]

tested

Comment by Konstantin Buravcov (Inactive) [ 2011 Apr 18 ]

branches/1.8 rev 19082

Generated at Fri Apr 26 09:36:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.