[ZBX-2978] Can't import templates with graphs with Y axis max set to an item Created: 2010 Sep 03  Updated: 2017 May 30  Resolved: 2010 Sep 28

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.3
Fix Version/s: 1.8.4

Type: Incident report Priority: Major
Reporter: Gabriele Armao Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

zabbix 1.8.3 frontend on zabbix server 1.8.3 using a mysql db


Attachments: XML File zbx_templates_export.xml    
Issue Links:
Duplicate
duplicates ZBX-2330 [ CGraph::create ] Incorrect item for... Closed
is duplicated by ZBX-4096 invalid ymin_item_key results in usel... Closed

 Description   

I exported a template from a zabbix 1.8.3 server with some graphs on it that had Y axis max value set to an item, then I tried importing that template on a brand new zabbix 1.8.3 server but I got this error:

  • Undefined index: ymax_itemid[/opt/zabbix/frontends/api/classes/class.cgraph.php:603]
  • Incorrect item for axis value item

I succesfully imported the template by disabling graphs import.

I attached the incriminated template.



 Comments   
Comment by Alexey Fukalov [ 2010 Sep 06 ]

fixed in dev branch: ZBX-2978

Also there was bug in export, for template graphs value of <ymax_item_key>, <ymin_item_key> was generated incorrectly, without template name.

Comment by richlv [ 2010 Sep 27 ]

now for template graphs item references look like this

<ymax_item_key>:</ymax_item_key>

additionally, when importing and failing on a graph, at least hostname and graph name should be mentioned

Comment by Alexey Fukalov [ 2010 Sep 28 ]

fixed

Comment by richlv [ 2010 Sep 28 ]

import does not stop upon error :

Incorrect dependency [trig1]

Comment by richlv [ 2010 Sep 28 ]

import not stopping filed separately as ZBX-3051

Comment by richlv [ 2010 Sep 28 ]

original problem confirmed to be fixed

Comment by Alexey Fukalov [ 2010 Sep 28 ]

branches/1.8 14604

Generated at Fri Apr 26 09:45:14 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.