Ad Widget

Collapse

Error importing graphs in 1.8.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • niumar
    Junior Member
    • Sep 2009
    • 25

    #1

    Error importing graphs in 1.8.4

    Hi!

    When I export a template with itens, triggers and graphs and import it again with a new name (edited in xml), itens and triggers are imported but graphs return a error during the import:

    # Missed item [:] for host [Template_Linux_Bd01xxx]

    I guess this is a bug. I have tryed with a lot of templates. Always during the import I received back the same error.

    Thanks!
    Attached Files
  • troloff
    Junior Member
    • Mar 2010
    • 3

    #2
    Workaround

    I can confirm the import problem. There seems to be something wrong with the ymin_type and ymax_type content in the xml export.
    I guess, an item, which was used as Y axis MIN/MAX value (type "Item") was deleted (or renamed?) and thus the corresponding field in the graph is empty.

    When exporting such a graph, I get
    Code:
    <ymin_type>2</ymin_type>
    <ymax_type>2</ymax_type>
    <ymin_item_key>:</ymin_item_key>
    <ymax_item_key>:</ymax_item_key>
    which does fail when importing the graph again.

    Possible workaround: Change the xml to
    Code:
    <ymin_type>0</ymin_type>
    <ymax_type>0</ymax_type>
    <ymin_item_key></ymin_item_key>
    <ymax_item_key></ymax_item_key>
    Possible type values are (from include/defines.inc.php):
    Code:
    	define('GRAPH_YAXIS_TYPE_CALCULATED',	0);
    	define('GRAPH_YAXIS_TYPE_FIXED',		1);
    	define('GRAPH_YAXIS_TYPE_ITEM_VALUE',	2);
    Besides this, Zabbix should check for the graph yaxis items, when renaming or deleting an item - maybe issue a warning or reset the yaxis type to calculated?

    Comment

    • troloff
      Junior Member
      • Mar 2010
      • 3

      #3
      screenshot with missing items
      Attached Files

      Comment

      • sire
        Senior Member
        • Jul 2010
        • 210

        #4
        If you want that the bug you discovered is solved faster, register an issue in the bug tracker.
        Regards,
        Sergey Syreskin

        Monitored hosts: 2646 / Active items: 23604 / Server performance: 765.74

        Temporary out of Zabbix business

        Comment

        Working...