Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  2. ZBXNEXT-5183

Allow simple triggers under item attribute in export files


    • Sprint 51 (Apr 2019), Sprint 52 (May 2019), Sprint 53 (Jun 2019)
    • 5


      Currently export files contain information about items and triggers separately, which makes editing of triggers related to an item rather difficult.

      It would be great to change structure of export files so that item and simple triggers (i.e. triggers having references only to one item) are on the same page, i.e. as close to each other as possible.


      Structure of XML/JSON export files must be modified to allow inclusion of triggers also as item attributes. Trigger prototypes will also be allowed to be attributes of item prototypes, same logic must be applied.

      1. <item> will support an optional attribute <triggers>
      2. Triggers can be placed in old location of <triggers> or under <item><triggers>
      3. When exporting:
        1. Old attribute <triggers> will be used only for complex triggers
        2. Simple triggers must be placed only under <item>
        3. No reference to item must be used, just a simple format:
          1. Before {host:item.func(param)} Now: {func(param)}
      4. When importing:
        1. Simple reference to item is allowed
        2. It is allowed to have a trigger from <item><triggers> without any references to <item> attribute

      A few examples

      Item definition in XML

        <name>Modification time of /etc/passwd</name>
            <name>Some problem</name>

      Business Use Cases

      1. I want to see clearly what triggers are defined for each item and edit them in a text editor if needed.

            martins-v Martins Valkovskis
            palivoda Rostislav Palivoda
            Team D
            1 Vote for this issue
            12 Start watching this issue