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

    • S24-W22/23, S24-W26/27, S24-W28/29, S24-W30/31, S24-W32/33, S24-W34/35
    • 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

            jfreibergs Janis Freibergs
            natalja.zabbix Natalja Romancaka
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 5h
                5h