Ad Widget

Collapse

Network Interfaces Discovery not working Properly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Peiler
    Junior Member
    • Jan 2021
    • 3

    #1

    Network Interfaces Discovery not working Properly

    Hi Everyone,
    I am relatively new to Zabbix. I am facing an issue with my Zabbix system, v5.0.7. It seems that suddently it stopped discovering Network Interfaces and all are lost from my Windows Hosts.
    I have the same templates used before, I see the Zabbix raw data created by the net.if.discovery Key but they are not created afterwards in the Items. Note that even machines that were working normally before, now don't even show the Network option in Applications.

    Looking forward for any assistance!
  • NilsA
    Senior Member
    • Sep 2020
    • 102

    #2
    Have you checked the Template in your hosts for errors (Configuration -> Hosts -> Host -> DIscovery rules (-> Item prototypes))? Or checked your logs?
    And what do you mean by "I see the Zabbix raw data"?

    Comment

    • volunteer75
      Junior Member
      • Mar 2021
      • 2

      #3
      Hi. I have the same problem. After installing / migrating Zabbix 5.2.3, when i add new host to Zabbix, i cannot see "Network interfaces discovery: Interface Microsoft Hyper-V Network Adapter(Ethernet" items or "Network interfaces discovery: Interface Microsoft Hyper-V Network Adapter(Ethernet)" application with Zabbix_agent2. The old hosts have no problem. They show Network interface discovery items/applications. Any help will be appreciated....Thanks in advanced.

      Comment

      • volunteer75
        Junior Member
        • Mar 2021
        • 2

        #4
        I tried to edit my post but it said "not authorized". So, i repost with more info:

        Hi. I have the same problem.
        1. After installing / migrating Zabbix 5.2.3, when i add new host to Zabbix, i cannot see "Network interfaces discovery: Interface Microsoft Hyper-V Network Adapter(Ethernet" items or triggers or "Network interfaces discovery: Interface Microsoft Hyper-V Network Adapter(Ethernet)" application with Zabbix_agent2.

        2. I can see "Template Module Windows network by Zabbix agent: Network interfaces WMI get: Network interfaces discovery" Discovery Rule with key "net.if.discovery" and related Item/trigger/graph prototypes with no problem as Pelier said above.

        ​​​​​​​3. The old hosts have no problem. They show Network interface discovery items/applications/triggers.

        Any help will be appreciated....Thanks in advanced.

        Comment

        • tinsmith1
          Junior Member
          • Nov 2020
          • 3

          #5
          Something is indeed broken
          Agent Version
          Code:
          zabbix_agentd Win64 (service) (Zabbix) 5.2.1
          Revision 4d0d532fb0 9 November 2020, compilation time: Nov 9 2020 16:55:42
          
          Copyright (C) 2020 Zabbix SIA
          License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
          This is free software: you are free to change and redistribute it according to
          the license. There is NO WARRANTY, to the extent permitted by law.
          
          This product includes software developed by the OpenSSL Project
          for use in the OpenSSL Toolkit (http://www.openssl.org/).
          
          Compiled with OpenSSL 1.1.1g 21 Apr 2020
          Running with OpenSSL 1.1.1g 21 Apr 2020
          WMI Output
          Code:
          [{"AdapterType":"Ethernet 802.3","AdapterTypeId":0,"Availability":3,"Caption ":"[00000001] Intel(R) Ethernet Controller X550","ConfigManagerErrorCode":0,"ConfigManagerUse rConfig":"False","CreationClassName":"Win32_Networ kAdapter","Description":"Intel(R) Ethernet Controller X550","DeviceID":"1","GUID":"{52485C0F-BD1C-429C-9230-6D2690B3521E}","Index":1,"Installed":"True","Inter faceIndex":8,"MACAddress":"0C:C4:7A:A3:AB:87","Man ufacturer":"Intel","MaxNumberControlled":0,"Name": "Intel(R) Ethernet Controller X550","NetConnectionID":"te4","NetConnectionStatus ":2,"NetEnabled":"True","PhysicalAdapter":"True"," PNPDeviceID":"PCI\\\\VEN_8086&DEV_1563&SUBSYS_0904 15D9&REV_01\\\\4&B253387&0&0000C9FFFF00000001","Po werManagementSupported":"False","ProductName":"Int el(R) Ethernet Controller X550","ServiceName":"ixgbs","SystemCreationClassNa me":"Win32_ComputerSystem","SystemName":"DIACLOUD1 0","TimeOfLastReset":"20190422205507.400475+120"}, {"AdapterType":"Ethernet 802.3","AdapterTypeId":0,"Availability":3,"Caption ":"[00000002] Intel(R) Ethernet Controller X550","ConfigManagerErrorCode":0,"ConfigManagerUse rConfig":"False","CreationClassName":"Win32_Networ kAdapter","Description":"Intel(R) Ethernet Controller X550","DeviceID":"2","GUID":"{40003E4E-236E-498C-B7AB-1D938FADEE40}","Index":2,"Installed":"True","Inter faceIndex":3,"MACAddress":"0C:C4:7A:A3:AB:86","Man ufacturer":"Intel","MaxNumberControlled":0,"Name": "Intel(R) Ethernet Controller X550","NetConnectionID":"te3","NetConnectionStatus ":2,"NetEnabled":"True","PhysicalAdapter":"True"," PNPDeviceID":"PCI\\\\VEN_8086&DEV_1563&SUBSYS_0904 15D9&REV_01\\\\4&B253387&0&0000C9FFFF00000000","Po werManagementSupported":"False","ProductName":"Int el(R) Ethernet Controller X550","ServiceName":"ixgbs","SystemCreationClassNa me":"Win32_ComputerSystem","SystemName":"DIACLOUD1 0","TimeOfLastReset":"20190422205507.400475+120"}, {"AdapterType":"Ethernet 802.3","AdapterTypeId":0,"Availability":3,"Caption ":"[00000003] Intel(R) Ethernet Controller X550","ConfigManagerErrorCode":0,"ConfigManagerUse rConfig":"False","CreationClassName":"Win32_Networ kAdapter","Description":"Intel(R) Ethernet Controller X550","DeviceID":"3","GUID":"{68D02D61-E495-4562-9A26-7E9D4EACA45B}","Index":3,"Installed":"True","Inter faceIndex":10,"MACAddress":"0C:C4:7A:A3:AB:84","Ma nufacturer":"Intel","MaxNumberControlled":0,"Name" :"Intel(R) Ethernet Controller X550","NetConnectionID":"te1","NetConnectionStatus ":7,"NetEnabled":"False","PhysicalAdapter":"True", "PNPDeviceID":"PCI\\\\VEN_8086&DEV_1563&SUBSYS_090 415D9&REV_01\\\\0000C9FFFF00000000","PowerManageme ntSupported":"False","ProductName":"Intel(R) Ethernet Controller X550","ServiceName":"ixgbs","SystemCreationClassNa me":"Win32_ComputerSystem","SystemName":"DIACLOUD1 0","TimeOfLastReset":"20190422205507.400475+120"}, {"AdapterType":"Ethernet 802.3","AdapterTypeId":0,"Availability":3,"Caption ":"[00000004] Intel(R) Ethernet Controller X550","ConfigManagerErrorCode":0,"ConfigManagerUse rConfig":"False","CreationClassName":"Win32_Networ kAdapter","Description":"Intel(R) Ethernet Controller X550","DeviceID":"4","GUID":"{8ED28DAB-8FAD-4534-80F1-8B8B691249A7}","Index":4,"Installed":"True","Inter faceIndex":12,"MACAddress":"0C:C4:7A:A3:AB:85","Ma nufacturer":"Intel","MaxNumberControlled":0,"Name" :"Intel(R) Ethernet Controller X550","NetConnectionID":"te2","NetConnectionStatus ":7,"NetEnabled":"False","PhysicalAdapter":"True", "PNPDeviceID":"PCI\\\\VEN_8086&DEV_1563&SUBSYS_090 415D9&REV_01\\\\0000C9FFFF00000001","PowerManageme ntSupported":"False","ProductName":"Intel(R) Ethernet Controller X550","ServiceName":"ixgbs","SystemCreationClassNa me":"Win32_ComputerSystem","SystemName":"DIACLOUD1 0","TimeOfLastReset":"20190422205507.400475+120"}, {"AdapterType":"Ethernet 802.3","AdapterTypeId":0,"Availability":3,"Caption ":"[00000006] Microsoft Network Adapter Multiplexor Driver","ConfigManagerErrorCode":0,"ConfigManagerU serConfig":"False","CreationClassName":"Win32_Netw orkAdapter","Description":"Microsoft Network Adapter Multiplexor Driver","DeviceID":"6","GUID":"{D1D6A697-858B-411F-9E02-26C0BC596100}","Index":6,"Installed":"True","Inter faceIndex":19,"MACAddress":"0C:C4:7A:A3:AB:85","Ma nufacturer":"Microsoft","MaxNumberControlled":0,"N ame":"Microsoft Network Adapter Multiplexor Driver","NetConnectionID":"SANTeam","NetConnection Status":7,"NetEnabled":"False","PhysicalAdapter":" True","PNPDeviceID":"COMPOSITEBUS\\\\MS_IMPLAT_MP\ \\\{D1D6A697-858B-411F-9E02-26C0BC596100}","PowerManagementSupported":"False", "ProductName":"Microsoft Network Adapter Multiplexor Driver","ServiceName":"NdisImPlatformMp","Speed":" 0","SystemCreationClassName":"Win32_ComputerSystem ","SystemName":"DIACLOUD10","TimeOfLastReset":"201 90422205507.400475+120"},{"AdapterType":"Ethernet 802.3","AdapterTypeId":0,"Availability":3,"Caption ":"[00000008] Microsoft Network Adapter Multiplexor Driver","ConfigManagerErrorCode":0,"ConfigManagerU serConfig":"False","CreationClassName":"Win32_Netw orkAdapter","Description":"Microsoft Network Adapter Multiplexor Driver","DeviceID":"8","GUID":"{41AA33D8-CE18-4DAA-8C47-F03A79EDE1A1}","Index":8,"Installed":"True","Inter faceIndex":4,"MACAddress":"0C:C4:7A:A3:AB:87","Man ufacturer":"Microsoft","MaxNumberControlled":0,"Na me":"Microsoft Network Adapter Multiplexor Driver","NetConnectionID":"LANTeam","NetConnection Status":2,"NetEnabled":"True","PhysicalAdapter":"T rue","PNPDeviceID":"COMPOSITEBUS\\\\MS_IMPLAT_MP\\ \\{41AA33D8-CE18-4DAA-8C47-F03A79EDE1A1}","PowerManagementSupported":"False", "ProductName":"Microsoft Network Adapter Multiplexor Driver","ServiceName":"NdisImPlatformMp","SystemCr eationClassName":"Win32_ComputerSystem","SystemNam e":"DIACLOUD10","TimeOfLastReset":"20190422205507. 400475+120"},{"AdapterType":"Ethernet 802.3","AdapterTypeId":0,"Availability":3,"Caption ":"[00000019] Hyper-V Virtual Ethernet Adapter","ConfigManagerErrorCode":0,"ConfigManager UserConfig":"False","CreationClassName":"Win32_Net workAdapter","Description":"Hyper-V Virtual Ethernet Adapter","DeviceID":"19","GUID":"{2DACBC75-6E7C-47CF-BD53-36BBDCFD8053}","Index":19,"Installed":"True","Inte rfaceIndex":44,"MACAddress":"0C:C4:7A:A3:AB:87","M anufacturer":"Microsoft","MaxNumberControlled":0," Name":"Hyper-V Virtual Ethernet Adapter","NetConnectionID":"vEthernet (VirtualSwitchLANTeam)","NetConnectionStatus":2,"N etEnabled":"True","PhysicalAdapter":"True","PNPDev iceID":"ROOT\\\\VMS_MP\\\\0000","PowerManagementSu pported":"False","ProductName":"Hyper-V Virtual Ethernet Adapter","ServiceName":"VMSMP","Speed":"1000000000 0","SystemCreationClassName":"Win32_ComputerSystem ","SystemName":"DIACLOUD10","TimeOfLastReset":"201 90422205507.400475+120"}]
          Discovery duplicates
          Click image for larger version

Name:	w7L1JGy.png
Views:	7107
Size:	55.7 KB
ID:	424743

          I can't seem to get the information that matches with the actual WMI perfcounter names.

          Click image for larger version

Name:	Z5fsMDf.png
Views:	7052
Size:	6.1 KB
ID:	424744

          Windows Server 2016 in case that matters.

          A workaround would be to create some UserParameter(s) to call PowerShell and fetch the information, but spinning up a PowerShell instance is quite slow.

          Comment

          • davidmakk
            Junior Member
            • Mar 2022
            • 1

            #6
            Hi,

            I managed to find a workaround for this.

            I had the same issue with the default Network Interfaces Discovery rule, It suddenly stopped working and removed every previously added items from the hosts.

            I tested the item prototypes, and they gave back correct values. I noticed if i manually made the interface monitoring items, it worked perfectly, so the problem was with the Discovery rule being unable to automatically create the items.

            Couldn't figure out the cause so what i did is i made a new Template and a Discovery rule and basically copied the Item prototypes from the non-working one, esentially remaking the whole thing.

            It started working again... I guess maybe the default template somehow got bugged? I also updated the server to v6.0.1 and the database to v06000000

            Comment

            Working...