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

Misleading messages when importing on hosts page and template trigger is added to host

XMLWordPrintable

    • Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401, S24-W18/19
    • 1

      Steps to reproduce:

      1. Create template with item and trigger
      2. Export created template
        zabbix_export:
          version: '6.0'
          date: '2023-08-25T07:23:20Z'
          groups:
            - uuid: 0dad8812c0464f75964fee1b81c226b4
              name: AAA
          templates:
            - uuid: 3305be7494754639960af36f3f814100
              template: AAA
              name: AAA
              groups:
                - name: AAA
              items:
                - uuid: b9bc953edce447acafe31f8007da982c
                  name: a
                  key: a
                  triggers:
                    - uuid: 76f19a0db027464289ebcb9c375c4172
                      expression: last(/AAA/a)=0
                      name: b
        
        
      3. Delete created template 
        or use file instead of 1-3 steps zbx_export_templates_6.0.yaml
      4. Open Configuration -> Hosts
      5. Import file
      6. See misleading message about host - Incorrect trigger expression. Host "AAA" does not exist or you have no access to this host.
      7. Create host with the same name as template
      8. Try to import again
      9. See misleading message about item key - Incorrect item key "a" provided for trigger expression on "AAA".
      10. Add item with requested key on host
      11. Import again

      Result:
      template trigger added to host
      Expected:
      No misleading messages and template trigger not added to host

            vmaksimovs Vladimirs Maksimovs
            natalja.zabbix Natalja Romancaka
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: