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

Host prototype interfaces might not get updated correctly when linking templates by server

    XMLWordPrintable

Details

    • Team A
    • Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 90 (Jul 2022)
    • 0.25

    Description

      Invalid macro used to check for interface field updates:

      diff --git a/src/libs/zbxdbhigh/host.c b/src/libs/zbxdbhigh/host.c
      index 51b938a468..af862775d9 100644
      --- a/src/libs/zbxdbhigh/host.c
      +++ b/src/libs/zbxdbhigh/host.c
      @@ -3989,7 +3989,7 @@ static void       DBhost_prototypes_save(zbx_vector_ptr_t *host_prototypes, zbx_vector
                                                      (int)interface->main, (int)interface->type, (int)interface->useip,
                                                      interface->ip, interface->dns, interface->port);
                              }
      -                       else if (0 != (interface->flags & ZBX_FLAG_HPMACRO_UPDATE))
      +                       else if (0 != (interface->flags & ZBX_FLAG_HPINTERFACE_UPDATE))
                              {
                                      const char      *d = "";
       
      
      

      Attachments

        Issue Links

          Activity

            People

              wiper Andris Zeila
              wiper Andris Zeila
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: