[ZBX-4282] Undefined index when importing template Created: 2011 Oct 26  Updated: 2017 May 30  Resolved: 2011 Nov 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.7 (beta)
Fix Version/s: 1.9.8 (beta), 2.0.0

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File zbx_templates_export.xml    
Issue Links:
Duplicate
is duplicated by ZBX-4294 Undef index after update trigger Closed

 Description   

Undefined index: expression [api/classes/class.ctriggerexpression.php:17]
but template imported correctly



 Comments   
Comment by Igor Danoshaites (Inactive) [ 2011 Oct 27 ]

Confirmed in trunk (v1.9.7, rev #22729).

Comment by Corey Shaw [ 2011 Nov 03 ]

I just noticed something interesting that could have something to do with this bug. I ran across the issue described in ZBX-4294 (which was marked as a duplicate of this issue). I found I could "work around" the issue by following the steps here:

1. I ran into the issue when I tried to create a dependency to another trigger (and only then). The key I was trying to update to create a dependency was "

{SBS - Registry:net.tcp.service.perf[ldap,,5223].last(0)}

=0".
2. I then changed the trigger to have the key of "

{SBS - Registry:jmx["Application:Name=/RegistryService,Type=Liveness","Liveness"].last(0)}

=0" and saved the trigger. That worked and did not cause the undefined index problem.
3. I then changed the trigger back to the key it really should be "

{SBS - Registry:net.tcp.service.perf[ldap,,5223].last(0)}

=0" and saved the trigger. When I did that, the undefined index problem did not reappear.

I'm not sure why changing the trigger key to something new and then back to the original value made any difference, but I thought it might be useful to put here.

Comment by Alexey Fukalov [ 2011 Nov 03 ]

This should be fixed in ZBX-4056. Should be retested when ZBX-4056 closed.

Comment by Alexey Fukalov [ 2011 Nov 07 ]

Seems it is something else, not fixed in ZBX-4056.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 10 ]

RESOLVED.

Comment by Alexey Fukalov [ 2011 Nov 11 ]

(1) [GUI]
When import attached template for second time i.e. update it, errors appear.

<pavels> RESOLVED.

<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2011 Nov 11 ]

(2)
There is something with dev bracnh, there is trunk subdirectory..

<pavels> Weird. RESOLVED.

<Vedmak> CLOSED

Comment by Alexey Fukalov [ 2011 Nov 14 ]

(3) [GUI]
If we have template with triggers linkd to host, and we try to add trigger dependency for trigger in another template which is not linked to host we get error, but if we add dependency and change expression at same time, it allows to update such configuration which is wrong.

<pavels> RESOLVED.

<Vedmak> CLOSED

Generated at Wed Apr 17 02:14:55 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.