[ZBX-5637] Trigger expression helper (popup_trexpr.php) shows incorrect options Created: 2012 Oct 01 Updated: 2017 May 30 Resolved: 2012 Dec 10 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.0.3 |
Fix Version/s: | 2.0.4rc1, 2.0.5rc1, 2.1.0 |
Type: | Incident report | Priority: | Minor |
Reporter: | Oleksii Zagorskyi | Assignee: | Oleg Egorov (Inactive) |
Resolution: | Fixed | Votes: | 0 |
Labels: | triggerconfigfilter, triggerconfigform, triggerfunctions | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
Here is several improvements to make trigger expression constructor more consistent for different functions which have similar logic. 1. #count as a parameter for fuzzytime is allowed - but should be limited to seconds only.
2. For regexp, iregexp - there only seconds available but #count should be as well.
3. str function should have similar form design as for example regexp
Maybe other function should be checked as well |
Comments |
Comment by Toms (Inactive) [ 2012 Oct 05 ] |
Oleksiy, please write according function descriptions (visible in Function dropdown in popup_trexpr.php) for given trigger functions (fuzzytime, for example). What do you think about that in 2.0 along description function name would be visible in function dropdown "(abschange) Absolute difference between last and previous value < N" for example. "trigger expression constructor" - I believe you meant "Trigger expression condition" window, as expression constructor is something different laying just below expression. zalex_ua I'm not sure but I think it would be better to finish and merge
|
Comment by Oleksii Zagorskyi [ 2012 Oct 06 ] |
(4) To make this correct the form should have additional field (O) for 3rd (operator) parameter. Current description: Suggested description: And also add a field to put a Timeshift. oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-5637 r31002 zalex_ua REOPENED Operator "O" we should be inserted in expression with double quotes around, as shown in documentation <- but first ask opinion of other devs. The timeshift field is still missing. How it could be resolved ? oleg.egorov RESOLVED zalex_ua heh, works nice now, but I fount additional point which has to be implemented: 1st parameter supports sec or #num. oleg.egorov RESOLVED zalex_ua Successfully tested. CLOSED zalex_ua I wrote this comment during the Change these strings please to: REOPENED oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-3204 r31172 zalex_ua checked, CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Oct 22 ] |
(1) - successfully TESTED oleg.egorov RESOLVED zalex_ua (3) Note that I just said above that there must be "T" label. This is still not fixed, still is "O". Btw, I suggest to use "V" label in function description and in field label. REOPENED oleg.egorov RESOLVED zalex_ua Perfect ! CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Oct 24 ] |
After using such a form (didn't used it before ) I have to say that here still are points which could be "polished" to be more "clear". I think now there no errors. |
Comment by Eduards Samersovs (Inactive) [ 2012 Oct 25 ] |
Tested! |
Comment by Oleg Egorov (Inactive) [ 2012 Oct 25 ] |
FIXED IN 2.0.4rc1 r31072, 2.1.0(trunk) r31073 |
Comment by Alexander Vladishev [ 2012 Oct 26 ] |
(4) Cannot add a trigger with str/regexp/iregexp functions without a second optional parameter. Incorrect trigger function "regexp('aaa')" provided in expression. Mandatory parameter is missing. Check expression part starting from " {Template OS Linux:system.hostname.regexp('aaa')}#0". zalex_ua Oleg created dev branch and has fixed this issue. I successfully tested. |
Comment by Oleksii Zagorskyi [ 2012 Oct 28 ] |
(5) take a look to oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-5637 r31118 zalex_ua CLOSED |
Comment by Eduards Samersovs (Inactive) [ 2012 Oct 29 ] |
Tested! |
Comment by Oleg Egorov (Inactive) [ 2012 Oct 29 ] |
FIXED IN 2.0.4rc1 r31122, 2.1.0 r31123 |
Comment by Oleksii Zagorskyi [ 2012 Oct 31 ] |
(6) for "last" function (Last (most recent) T value is < N) when we select "count" mode we have to be able put there a number but its input field is disabled this is a REGRESSION from 2.0.3 !!! REOPENED oleg.egorovRESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-3204 r31161 zalex_ua tested, CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Oct 31 ] |
(7) strlen should work identically to the "last", see just described in (6) this error came from 2.0.3 oleg.egorovRESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-3204 r31161 zalex_ua now in both cases the fields is not allowed to be filled, it's wrong. oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-3204 r31172 zalex_ua successfully tested, CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Oct 31 ] |
Ready to review by another dev. |
Comment by Oleg Egorov (Inactive) [ 2012 Dec 10 ] |
FIXED IN 2.0.5rc1 r31998, 2.1.0 r31999 |