[ZBXNEXT-2541] Function nodata()=0 with expression based on time Created: 2014 Oct 24 Updated: 2017 May 31 Resolved: 2014 Oct 28 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Server (S) |
Affects Version/s: | 2.4.0, 2.4.1 |
Fix Version/s: | None |
Type: | Change Request | Priority: | Major |
Reporter: | Alisson Ramos de Oliveira | Assignee: | Unassigned |
Resolution: | Duplicate | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
When using a trigger with another expression that use time to evaluate, Zabbix Server fail to evaluate the entire expression. Por exemple, create the trigger with the following expression: {HOSTX:measure.time[cx2venda].nodata(15m)}=0 and {HOSTX:measure.time[cx2venda].avg(15m)}>4 The item is Zabbix Trapper and not arrives all the time, only when a user click on specific link. The situation is that if no one data is arrived in last 15 minutes the trigger should become OK, but this not occur because the fail on evaluate 15m with no data. The expected behavior is the trigger turn OK because, in fact, no data is arrived and trigger become FALSE. |
Comments |
Comment by richlv [ 2014 Oct 25 ] |
not sure this should be changed in any way - your expression relies on average of the data, but the data is not there, so we can not know what is the current state. how about creating two triggers, one with avg() and one with nodata(), then making the avg() one depend on the nodata() one ? |
Comment by Aleksandrs Saveljevs [ 2014 Oct 27 ] |
In other words, short-circuiting behavior is not supported in trigger expressions currently. As such, this seems to be a duplicate of ZBXNEXT-1906. |
Comment by Alisson Ramos de Oliveira [ 2014 Oct 27 ] |
make sense, richlv, but, in our scenario, this trigger should be only one, because one action is dependent and we need the trigger become OK to move a host for another group. Aleksandrs, i guess that patch is we need. |
Comment by Aleksandrs Saveljevs [ 2014 Oct 28 ] |
Thank you, closing as a duplicate then. |