Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2908

Update existing applications on Template import via Frontend

    XMLWordPrintable

Details

    • Change Request
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6
    • None
    • Frontend (F)
    • Ubuntu 14.04 with package zabbix-frontend-php (1:2.4.6-1+trusty)

    Description

      Since Zabbix 2.4 the API supports to update existing applications on template import. Why doesn't the frontend support this?

      The fix for this is quite easy:

      --- conf.import.php	2015-08-19 13:35:52.337659153 +0200
      +++ conf.import.new.php	2015-08-19 13:37:28.813610913 +0200
      @@ -52,7 +52,7 @@
       	'templates' => array('updateExisting' => false, 'createMissing' => false),
       	'templateScreens' => array('updateExisting' => false, 'createMissing' => false, 'deleteMissing' => false),
       	'templateLinkage' => array('createMissing' => false),
      -	'applications' => array('createMissing' => false, 'deleteMissing' => false),
      +	'applications' => array('updateExisting' => false, 'createMissing' => false, 'deleteMissing' => false),
       	'items' => array('updateExisting' => false, 'createMissing' => false, 'deleteMissing' => false),
       	'discoveryRules' => array('updateExisting' => false, 'createMissing' => false, 'deleteMissing' => false),
       	'triggers' => array('updateExisting' => false, 'createMissing' => false, 'deleteMissing' => false),
      @@ -69,6 +69,7 @@
       			$data['rules']['groups'] = array('createMissing' => true);
       			$data['rules']['hosts'] = array('updateExisting' => true, 'createMissing' => true);
       			$data['rules']['applications'] = array(
      +				'updateExisting' => false,
       				'createMissing' => true,
       				'deleteMissing' => false
       			);
      @@ -104,6 +105,7 @@
       				'deleteMissing' => false
       			);
       			$data['rules']['applications'] = array(
      +				'updateExisting' => true,
       				'createMissing' => true,
       				'deleteMissing' => false
       			);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            HontoNoRoger Roger Lehmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: