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

Incorrect interface and tags update during the linking

XMLWordPrintable

    • Team A
    • Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021), Sprint 83 (Dec 2021), Sprint 84 (Jan 2022), Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022), Sprint 94 (Nov 2022)
    • 2

      (copy of subissue (4) from ZBXNEXT-6802)

      Steps to reproduce:
      1) Create tempalte with hostprototype. 
      2) Add 2 SNMP interfaces to hostprototype:
      First 
            SNMP version: SNMPv2
            SNMP community: 2_snmp_2
      Second
            SNMP version: SNMPv1
            SNMP community: 1_snmp_1
      3) Create Autoregistratino Action with operation - link template. 
      4) Turn on server and agent. Wait till host with linked tempalte is created.
      5) Unlink template. 
      6) In templates hostprototype add DNS name to SNMPv1 - 1_add_dns_for_SNMP_1

      7) Change Hostmetadata, turn on server and agent.
      8) Check audit after template is linked. 
      Result:

      I have no idea why he shows changes for both interfaces. 
      Expected:
      Only changes for one SNMP interface.

      Server logs:

       344970:20210813:171417.549 query [txnlev:1] [update hosts set templateid=10423 where hostid=10427;
      update group_prototype set templateid=56 where group_prototypeid=60;
      update group_prototype set templateid=57 where group_prototypeid=61;
      update interface set main=0 where interfaceid=16;
      update interface_snmp set version=2,community='2_snmp_2' where interfaceid=16;
      update interface set main=1,dns='1_add_dns_for_SNMP_1' where interfaceid=17;
      update interface_snmp set version=1,community='1_snmp_1' where interfaceid=17;
      update host_tag set tag='tag_name_1',value='tag_value_1' where hosttagid=6;
      ] 

       

        1. Selection_999(127).png
          Selection_999(127).png
          51 kB
        2. Selection_999(128).png
          Selection_999(128).png
          55 kB
        3. Selection_999(324).png
          Selection_999(324).png
          55 kB
        4. Selection_999(323).png
          Selection_999(323).png
          27 kB
        5. Selection_999(329).png
          Selection_999(329).png
          18 kB
        6. Selection_999(330).png
          Selection_999(330).png
          15 kB
        7. Selection_999(345).png
          Selection_999(345).png
          19 kB
        8. Selection_999(343).png
          Selection_999(343).png
          15 kB
        9. Selection_999(344).png
          Selection_999(344).png
          13 kB
        10. image.png
          image.png
          2 kB
        11. screenshot-1.png
          screenshot-1.png
          70 kB
        12. screenshot-2.png
          screenshot-2.png
          61 kB
        13. screenshot-3.png
          screenshot-3.png
          57 kB
        14. screenshot-4.png
          screenshot-4.png
          44 kB
        15. screenshot-5.png
          screenshot-5.png
          47 kB
        16. screenshot-6.png
          screenshot-6.png
          41 kB
        17. crash_log.txt
          68 kB

            wiper Andris Zeila
            smaklakovs Sergejs Maklakovs
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: