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

Incorrect network interface description on win32

XMLWordPrintable

    • Icon: Patch request Patch request
    • Resolution: Change request declined
    • Icon: Minor Minor
    • None
    • 4.2.3
    • Agent (G)
    • Windows Vista or greater
    • Sprint 53 (Jun 2019)

      There's a strange behaviour of WinAPI function GetIfTable() since Windows Vista on some environments (ex, LBFO Teaming in Windows Server 2012 R2 etc).
      The fuction usually returns a network adapter name (or friendly name, user-setted name) as MIB_IFROW.bDescr (ex, Ethernet). But sometime (on certain environments) it returns an adapter driver name (ex, "Microsoft Network Adapter Multiplexor Driver #2") instead friendly name. But there isn't problem if it use MIB_IF_ROW2.Alias.
      An user can set a friendly name by renaming the network adapter to "LAN" or "Team" etc. But user cannot rename and renumber an adapter driver name.
      I suggest to change the zbx_ifrow_get_utf8_description() function for using MIB_IF_ROW2.Alias instead MIB_IF_ROW2.Description.

      I've attached two net.if.discovery - original with MIB_IF_ROW2.Description (discovery.orig.txt) and patched with MIB_IF_ROW2.Alias (discovery.txt).

        1. discovery.orig.txt
          3 kB
          Boris P. Korzun
        2. discovery.txt
          3 kB
          Boris P. Korzun
        3. Screenshot from 2019-06-21 15-23-57.png
          36 kB
          Michael Veksler
        4. zabbix_win32_net.patch
          0.6 kB
          Boris P. Korzun

            MVekslers Michael Veksler
            drtr0jan Boris P. Korzun
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: