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

windows network template problem

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 5.0.8
    • Zabbix Server OS: CentOS 7.9.2009
      Zabbix Client OS: Windows Server 2012 R2
      Zabbix Server/Client version 5.0.8

       

      Steps to reproduce:

      1. In "Template Module Windows network by Zabbix agent",  item "Network interfaces WMI get" ,  key "wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterTypeId,NetConnectionStatus from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]
      2. My client is a HPE 380 Gen9 , and its network adapter is one adapter with four ports. So I get the following result:
      3. // code placeholder
        PS C:\Users\Administrator> Get-WmiObject -Namespace root\cimv2 -Query "select Name,Description,NetConnectionID,Speed,Ada
        pterTypeId,NetConnectionStatus from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"
        __GENUS             : 2
        __CLASS             : Win32_NetworkAdapter
        __SUPERCLASS        :
        __DYNASTY           :
        __RELPATH           :
        __PROPERTY_COUNT    : 6
        __DERIVATION        : {}
        __SERVER            :
        __NAMESPACE         :
        __PATH              :
        AdapterTypeId       : 0
        Description         : HPE Ethernet 1Gb 4-port 331i Adapter
        Name                : HPE Ethernet 1Gb 4-port 331i Adapter
        NetConnectionID     : Embedded LOM 1 Port 1
        NetConnectionStatus : 2
        Speed               : 1000000000
        PSComputerName      :
        
        __GENUS             : 2
        __CLASS             : Win32_NetworkAdapter
        __SUPERCLASS        :
        __DYNASTY           :
        __RELPATH           :
        __PROPERTY_COUNT    : 6
        __DERIVATION        : {}
        __SERVER            :
        __NAMESPACE         :
        __PATH              :
        AdapterTypeId       :
        Description         : HPE Ethernet 1Gb 4-port 331i Adapter
        Name                : HPE Ethernet 1Gb 4-port 331i Adapter
        NetConnectionID     : Embedded LOM 1 Port 4
        NetConnectionStatus : 4
        Speed               :
        PSComputerName      :
        
        __GENUS             : 2
        __CLASS             : Win32_NetworkAdapter
        __SUPERCLASS        :
        __DYNASTY           :
        __RELPATH           :
        __PROPERTY_COUNT    : 6
        __DERIVATION        : {}
        __SERVER            :
        __NAMESPACE         :
        __PATH              :
        AdapterTypeId       :
        Description         : HPE Ethernet 1Gb 4-port 331i Adapter
        Name                : HPE Ethernet 1Gb 4-port 331i Adapter
        NetConnectionID     : Embedded LOM 1 Port 3
        NetConnectionStatus : 4
        Speed               :
        PSComputerName      :
        
        __GENUS             : 2
        __CLASS             : Win32_NetworkAdapter
        __SUPERCLASS        :
        __DYNASTY           :
        __RELPATH           :
        __PROPERTY_COUNT    : 6
        __DERIVATION        : {}
        __SERVER            :
        __NAMESPACE         :
        __PATH              :
        AdapterTypeId       :
        Description         : HPE Ethernet 1Gb 4-port 331i Adapter
        Name                : HPE Ethernet 1Gb 4-port 331i Adapter
        NetConnectionID     : Embedded LOM 1 Port 2
        NetConnectionStatus : 4
        Speed               :
        PSComputerName      :

      Expected:

      1. From the result we find four ports have same name and description, and just connectionID is different. In the Discovery Rule, all item keys are identified by name. As a result three ports data are discarded and in host items just one port data  is showing

            zabbix.dev Zabbix Development Team
            zlq zlq
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: