Hi,
today I tried to use the export feature on my old Zabbix 1.4 Server. The export succeeded, but I had some problems importing the XML-Data to my new Zabbix 1.6 Server. I always got "ERROR: Import failed" while trying to import the file.
The reason was not so complicated: the XML file contains special characters (german Umlaut, and more), but the xml encoding is not defined in the file.
I just added an encoding to the first line of the XML file and the import worked immediately:
Maybe the Zabbix developers should set the encoding in the XML export file. Possibly this problem does not exist with Zabbix 1.6. A little more debug output during the Import would help a lot.
Kind regards
- Frank
today I tried to use the export feature on my old Zabbix 1.4 Server. The export succeeded, but I had some problems importing the XML-Data to my new Zabbix 1.6 Server. I always got "ERROR: Import failed" while trying to import the file.
The reason was not so complicated: the XML file contains special characters (german Umlaut, and more), but the xml encoding is not defined in the file.
Code:
$ xmlstarlet val -e zabbix_export.xml
zabbix_export.xml:1068: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xD6 0x73 0x74 0x65
<description>This contains a german Umlaut: Österreich.</description>
^
zabbix_export.xml - invalid
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
Kind regards
- Frank
Comment