Zabbix Server 6.2.3
Zabbix Agent 2 6.2.3 (passive)
Host Win 2008 R2
Zabbix Agent 2 6.2.3 (passive)
Host Win 2008 R2
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
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"
}]]
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"
}]
So, I'm really not seeing any issue there.
Any suggestions?
PS: I've prettified the JSON result to make it easier to read.