[ZBX-8410] Invalid regular expression in eventlog[] is treated as a failed match instead of making item 'not supported' Created: 2014 Jun 30 Updated: 2018 Oct 12 Resolved: 2018 Oct 12 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G), Proxy (P), Server (S) |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Andris Zeila | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 0 |
Labels: | notsupported, regexps | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
One would expect item becoming not supported if its parameters contains error. But currently when regular expression matching fails there is no way to tell if the expression itself was invalid or the data did not match. Therefore invalid regular expression in item parameters is not handled properly. This affects most items that accepts regular expression in their parameters (with an exception of log(rt)[] items). To fix it the internal regular expression API must be reworked to allow returning of 3 states - match, not match, error (one way would be moving the matching string as output parameter and returning FAIL/SUCCEED codes). |
Comments |
Comment by Andris Zeila [ 2014 Jul 18 ] |
Initial specifications draft at https://www.zabbix.org/wiki/Docs/specs/ZBX-8410 |
Comment by Juris Miščenko (Inactive) [ 2014 Jul 29 ] |
Fix implemented at svn://svn.zabbix.com/branches/dev/ZBX-8410 |
Comment by Aleksandrs Saveljevs [ 2014 Nov 27 ] |
The current state of the task seems to be that the specification review is pending. Development review and testing has to wait until specification is finalized. |
Comment by Alexander Vladishev [ 2018 Oct 12 ] |
Closed as duplicate of |