Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-85

XML export/import and certain characters

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.4.3
    • 1.4.3
    • Frontend (F)
    • None

      Hi

      under certain conditions the export feature produces invalid XML. This happens for instance when a trigger contains a '<' (less than) comparison. The exported XML looks like this which is invalid. In fact, it cannot be re-imported.

      <trigger>
      <description>

      {HOSTNAME} was rebooted</description>
      <expression>{{HOSTNAME}

      :sysUpTime.last(0)}<300</expression>
      </trigger>

      The correct method is to replace '<' with '<' as shown below. On import this gets replaced correctly.

      <trigger>
      <description>

      {HOSTNAME} was rebooted</description>
      <expression>{{HOSTNAME}

      :sysUpTime.last(0)}<300</expression>
      </trigger>

      http://www.zabbix.com/forum/showthread.php?t=7666

            alexei Alexei Vladishev
            alexei Alexei Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: