[ZBX-3631] XML import/export ignores/omits valuemapid tag Created: 2011 Mar 19  Updated: 2017 May 30  Resolved: 2012 Jan 11

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

Type: Incident report Priority: Minor
Reporter: Jim Bala Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: valuemapping, xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Oracle Enterprise Linux 5.5, distro-supplied Apache/MySQL/PHP/kernel


Attachments: Text File export.inc.php.patch    
Issue Links:
Duplicate
duplicates ZBX-3531 Export/import basic functionality Closed
is duplicated by ZBX-4533 xml templates -> valuemapid does not ... Closed

 Description   

Importing a template from XML file ignores the valuemapid tag; exporting anything that uses value mapping (e.g., template, host) to XML file omits the valuemapid tag.

Problem:
<webroot>/zabbix/include/export.inc.php:
XML_TAG_ITEM, 'elements', is missing: 'valuemapid' => ''

Solution:

      • export.inc.php.orig 2011-03-18 19:14:14.000000000 -0700
      • export.inc.php 2011-03-18 19:14:32.000000000 -0700
        ***************
      • 170,176 ****
        'snmpv3_securityname' => '',
        'snmpv3_securitylevel' => '',
        'snmpv3_authpassphrase' => '',
        ! 'snmpv3_privpassphrase' => ''
        )
        ),
        XML_TAG_TRIGGER => array(
      • 170,177 ----
        'snmpv3_securityname' => '',
        'snmpv3_securitylevel' => '',
        'snmpv3_authpassphrase' => '',
        ! 'snmpv3_privpassphrase' => '',
        ! 'valuemapid' => ''
        )
        ),
        XML_TAG_TRIGGER => array(


 Comments   
Comment by Jim Bala [ 2011 Mar 19 ]

Insert missing 'valuemapid' into export.inc.php -> XML_TAG_ITEM.

Comment by richlv [ 2011 Jul 12 ]

also see ZBX-3945

Comment by richlv [ 2012 Jan 11 ]

this will be fixed in ZBX-3531

Generated at Thu Apr 25 04:44:10 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.