Ad Widget

Collapse

Host network error with working key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #1

    Host network error with working key

    Zabbix Server 6.2.3
    Zabbix Agent 2 6.2.3 (passive)
    Host Win 2008 R2
    I keep getting this "host "HOST" failed: first network error, wait for 15 seconds" error because of an "wmi.getall" key from the host. Then, moments later, the connection is restored.
    Code:
    3541747:20221202:111411.728 Zabbix agent item "wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterType Id,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]" on host "HOST" failed: first network error, wait for 15 seconds
    3541757:20221202:111426.066 resuming Zabbix agent checks on host "HOST": connection restored
    At the host, if I test the item with Zabbix Agent 2, it correctly returns the network interfaces.
    Code:
    PS C:\zabbix> .\zabbix_agent2.exe -t 'wmi.getall[root\cimv2,\"select Name,Description,NetConnectionID,Speed,AdapterType Id,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0\"]
    
    'wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterType Id,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"][s|
    [{
      "AdapterTypeId": 0,
      "Description": "Intel(R) PRO/1000 MT Network Connection",
      "DeviceID": "7",
      "GUID": "{D1610452-270C-453E-A500-B217D84D296F}",
      "Name": "Intel(R) PRO/1000 MT Network Connection",
      "NetConnectionID": "Local-Local",
      "NetConnectionStatus": 2,
      "Speed": "1000000000"
    },
    {
      "AdapterTypeId": 0,
      "Description": "vmxnet3 Ethernet Adapter",
      "DeviceID": "14",
      "GUID": "{CB5DEE46-3652-4D78-99D9-FBD91636510E}",
      "Name": "vmxnet3 Ethernet Adapter",
      "NetConnectionID": "Local Area Connection",
      "NetConnectionStatus": 2,
      "Speed": "10000000000"
    }]]
    Also, by trying Zabbix Get from the host's proxy, I'm able to retrieve the data.
    Code:
    $ zabbix_get -s 172.24.168.139 -k "wmi.getall[root\cimv2,\"select Name,Description,NetConnectionID,Speed,AdapterType Id,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0\"]"
    [{
      "AdapterTypeId": 0,
      "Description": "Intel(R) PRO/1000 MT Network Connection",
      "DeviceID": "7",
      "GUID": "{D1610452-270C-453E-A500-B217D84D296F}",
      "Name": "Intel(R) PRO/1000 MT Network Connection",
      "NetConnectionID": "Verint-Local",
      "NetConnectionStatus": 2,
      "Speed": "1000000000"
    },
    {
      "AdapterTypeId": 0,
      "Description": "vmxnet3 Ethernet Adapter",
      "DeviceID": "14",
      "GUID": "{CB5DEE46-3652-4D78-99D9-FBD91636510E}",
      "Name": "vmxnet3 Ethernet Adapter",
      "NetConnectionID": "Local Area Connection",
      "NetConnectionStatus": 2,
      "Speed": "10000000000"
    }]
    There is no "unsupported" item for this host. The Agent is collecting data for all other items with no issues.
    So, I'm really not seeing any issue there.

    Any suggestions?


    PS: I've prettified the JSON result to make it easier to read.​
    Last edited by markfree; 03-12-2022, 02:14.
Working...