ZABBIX BUGS AND ISSUES

Error when trigger expression item key contain another trigger expression string

Details

Description

It is not possible to save the following trigger expression:

{my replace template:agent.ping.last(0)}=0 | {my replace template:log["{my replace template:agent.ping.last(0)}"].last(0)}=0

Error:

Incorrect trigger expression format " {constant}={constant} | {my replace template:log["{constant}"].last({constant})}={constant} " Check expression part starting from " {my replace template:agent.ping.last(0)}=0 | {my replace template:log["{my replace template:agent.ping.last(0)}"].last(0)}=0 " [CTrigger.update -> CTrigger.checkInput]

Activity

Hide
Alexei Vladishev added a comment -

It should be added to regression tests.

Show
Alexei Vladishev added a comment - It should be added to regression tests.
Hide
Alexey Fukalov added a comment -

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4247

Show
Alexey Fukalov added a comment - dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4247
Hide
Toms added a comment - - edited

(1) There is problem with multibyte string in trigger expressions. Expression {my replace template:log["āšē"].last(0)}=0 gives "Incorrect trigger expression format" error while {my replace template:log["ase"].last(0)}=0 does not

Alexey Fukalov RESOLVED in r30383

Toms CLOSED

Show
Toms added a comment - - edited (1) There is problem with multibyte string in trigger expressions. Expression {my replace template:log["āšē"].last(0)}=0 gives "Incorrect trigger expression format" error while {my replace template:log["ase"].last(0)}=0 does not Alexey Fukalov RESOLVED in r30383 Toms CLOSED
Hide
Toms added a comment -

TESTED

Show
Toms added a comment - TESTED
Hide
Alexey Fukalov added a comment -

Fixed in 2.0.4rc1 r30533, pre-2.1.0 r30534.

Show
Alexey Fukalov added a comment - Fixed in 2.0.4rc1 r30533, pre-2.1.0 r30534.
Hide
Alexander Vladishev added a comment -

Stay reproducible in latest 2.0 r31248.

Steps to reproduce:

  • add two items:
    • item
    • item[{host:item.last(0)}
  • add trigger with expression
    {host:item.last(0)}=0 | {host:item[{host:item.last(0)}].last(0)}=0
  • we have incorrect trigger expression in the DB:
    {13123}=0 | {host:item[{13123}].last(0)}=0
Show
Alexander Vladishev added a comment - Stay reproducible in latest 2.0 r31248. Steps to reproduce:
  • add two items:
    • item
    • item[{host:item.last(0)}
  • add trigger with expression
    {host:item.last(0)}=0 | {host:item[{host:item.last(0)}].last(0)}=0
  • we have incorrect trigger expression in the DB:
    {13123}=0 | {host:item[{13123}].last(0)}=0
Hide
Alexander Vladishev added a comment - - edited

Fixed in pre-1.8.16 r31955, pre-2.0.4 r31650 and pre-2.1.0 r31649.

Show
Alexander Vladishev added a comment - - edited Fixed in pre-1.8.16 r31955, pre-2.0.4 r31650 and pre-2.1.0 r31649.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: