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

    Details

    • Type: Problem report
    • Status: Confirmed
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 5.2.0alpha1
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:
    • Team:
      Team B

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: