[ZBX-11367] XML after export cannot be imported back in Created: 2016 Oct 18  Updated: 2017 May 30  Resolved: 2016 Oct 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.0.5
Fix Version/s: 3.0.6rc1, 3.2.2rc1, 3.4.0alpha1

Type: Incident report Priority: Minor
Reporter: Artur Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: xml
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS7 DB with partitions.


Attachments: XML File zbx_export_hosts.xml    

 Description   

continued problems https://support.zabbix.com/browse/ZBX-11352
XML after export cannot be imported back in and get error
Import failed
Details

Incorrect bulk value for interface. [conf.import.php:173 ? CFrontendApiWrapper->import() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CConfiguration->import() ? CConfigurationImport->import() ? CConfigurationImport->processHosts() ? CHostImporter->import() ? CHost->update() ? CHost->massUpdate() ? CHostInterface->replaceHostInterfaces() ? CHostInterface->checkInput() ? CHostInterface->checkBulk() ? CApiService::exception() in include/classes/api/services/CHostInterface.php:658]



 Comments   
Comment by Aleksandrs Saveljevs [ 2016 Oct 18 ]

Setting to "Confirmed".

Comment by Gunars Pujats (Inactive) [ 2016 Oct 19 ]

(1) No translation strings changed

iivs CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Oct 19 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-11367

Comment by Ivo Kurzemnieks [ 2016 Oct 20 ]

The XML shouldn't contain bulk values as zeroes for non-SNMP interfaces. It should contain the default value 1. I assume the DB is a bit corrupted, hence the wrong XML. The real question is how that was achieved. Anyway, after a short discussion, we decided to skip passing the bulk value to host.create/host.update via configuration.import for non-SNMP interfaces.

Comment by Artur [ 2016 Oct 20 ]

It was after upgrade to 2.4 when bulk values were add to interface.
I updated this flag in db because i have many problems with bulk get on my hosts.

Comment by Ivo Kurzemnieks [ 2016 Oct 20 ]

TESTED

Comment by Gunars Pujats (Inactive) [ 2016 Oct 21 ]

Fixed in:

  • pre-3.0.6rc1 r63304
  • pre-3.2.2rc1 r63305
  • pre-3.3.0 r63306
Generated at Fri Mar 29 14:51:48 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.