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)}<30 0</expression>
</trigger>
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)}<30 0</expression>
</trigger>
Comment