[ZBX-12086] Trigger expression broken after Discovery Created: 2017 Apr 20  Updated: 2017 May 30  Resolved: 2017 Apr 21

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.2.4
Fix Version/s: None

Type: Incident report Priority: Major
Reporter: Michael P Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: Discovery, LLD, Server
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBX-11855 Carriage Return Causes Data Truncatio... Closed

 Description   

Trigger expression on Host is broken after LLD.
It got truncated after the "<" sign.

Template Prototype:

{Template OS Windows Active:service.info[{#SERVICE.NAME},startup].last()}=0 and {Template OS Windows Active:service.info[{#SERVICE.NAME},state].min(#3)}<>0

Host Prototype:

{fqdn.domain.tld:service.info[{#SERVICE.NAME},startup].last()}=0 and {fqdn.domain.tld:service.info[{#SERVICE.NAME},state].min(#3)}<>0

Created LLD Trigger:

{fqdn.domain.tld:service.info[Appinfo,startup].last()}=0 and {fqdn.domain.tld:service.info[Appinfo,state].min(#3)}<

When switching the expression around it truncates after "last()}"

{fqdn.domain.tld:service.info[Appinfo,state].min(#3)}<>0 and {fqdn.domain.tld:service.info[Appinfo,startup].last()}

It seems not to be related to the expression length as I have other, longer, expressions that work without any problem.

The Item in the database (PostgreSQL 9.5) is also truncated.
Created Trigger:

SELECT "expression" FROM "public"."triggers" WHERE "triggerid" = '49698'

"{31711832}=0
and
{31711833}<"

Trigger Prototype:

SELECT "expression" FROM "public"."triggers" WHERE "triggerid" = '49643'

{31706903}=0
and
{31706904}<>0

Template:

SELECT "expression" FROM "public"."triggers" WHERE "triggerid" = '14803'

"{31604268}=0
and
{31604269}<>0"


 Comments   
Comment by richlv [ 2017 Apr 20 ]

might be another instance of ZBX-11855

Comment by Glebs Ivanovskis (Inactive) [ 2017 Apr 21 ]

Closing as Duplicate of ZBX-11855.

Generated at Fri Mar 29 11:34:51 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.