-
Change Request
-
Resolution: Won't Do
-
Minor
-
None
-
2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6
-
Ubuntu 14.04 with package zabbix-frontend-php (1:2.4.6-1+trusty)
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 );