See www.zabbix.com for the official Zabbix site.
Improve flexibility of action conditions
Owner: Alexei, Sasha
Currently type of calculation of trigger expressions is limited to AND/OR, AND and OR. It would be nice to have user-defined formula for evaluation of action conditions, such as ((A or B) and C) or D. Same way as it is currently implemented for LLD filters. See https://www.zabbix.org/wiki/Docs/specs/ZBXNEXT-581.
- Configuration of action conditions
'Type of calculation' will support new option Custom expression, EVAL_TYPE_EXPRESSION == 3.
In case if Custom expression is selected, there will be an input box displayed on the right side:
Type of calculation (AND/OR | AND | OR | Custom expression) [A and B and C and D] <- input box for the expression
The expression must contain all available labels (upper-case letters) and may contain spaces, tabs, '(', ')', 'and' and 'or' (case sensitive). It must be validated when
Save is pressed.
action.create, action.get and action.update should be extended same way as it is done for https://www.zabbix.org/wiki/Docs/specs/ZBXNEXT-581
Server should support processing of custom expressions.
New field for table actions:
FIELD |formula |t_varchar(255) |'' |NOT NULL |ZBX_SYNC
- What's new in Zabbix 2.4
- Zabbix Manual
- Configuration of actions including new examples
- DB schema