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

Incorrect error message when importing items, LLD rules and items prototypes with incorrect interface references

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.2.0alpha1
    • API (A)
    • Team B

      In 5.2 when importing a host with items, discovery rules and item prototypes that use a non existing interface the error message is always the same: "Item uses incorrect interface type", but in 4.0 it is explicitly mentioned which instance on which host has caused the error: "Cannot find interface "if3" used for item prototype "Hostname" of discovery rule "DR ZA" on "test"."

      Steps to reproduce:

      1. Create a host with a Zabbix agent interface (if1), an item and a discoverry rule with item prototype that use this interface.
      2. Export the host
      3. In the exported file change the "interface_ref" parameter of the item prototype or of the discovery rule from "if1" to a non-existing reference "if2"
      4. Delete the previously created host
      5. Import the previously exported xml (or other selected type of export).

      Result: the following error message is returned:

      Item uses incorrect interface type.

      Expected: Same as in the 4.0 branch, the error should clearly mention the host and the corresponding instance that caused the problem during import:

      Cannot find interface "if2" used for item prototype "Hostname" of discovery rule "DR ZA" on "test".

      Example:

      Host export with incorrect item prototype interface: host_with_incorrect_interface.xml

            zabbix.dev Zabbix Development Team
            iivs Ivo Kurzemnieks
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: