Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-5378

import template wrongly import discovery graph as simple graph

XMLWordPrintable

      case:
      template with:

      • discovery rule
      • discovery item
      • discovery graph
        Export template and then import:
        The discovery graphs are imported as templates graphs

      This fix seems to do the job

      on the paragraph:

      foreach ($item['graph_prototypes'] as $graph)

      { --- include/classes/import/CConfigurationImport.php.orig 2012-07-29 14:01:01.132325000 +0200 +++ include/classes/import/CConfigurationImport.php 2012-07-29 13:41:38.001055000 +0200 @@ -819,6 +819,7 @@ $graphsToUpdate[] = $graph; }

      else

      { + $graph['flags'] = ZBX_FLAG_DISCOVERY_CHILD; $graphsToCreate[] = $graph; }

            Unassigned Unassigned
            dakol dakol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: