[ZBX-5358] Zabbix Agent 2.0.0 on Windows - incorrect reporting of non-ASCII characters in interface name Created: 2012 Jul 23 Updated: 2017 May 30 Resolved: 2014 Nov 05 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 2.0.2rc1 |
Fix Version/s: | 2.0.3rc2, 2.0.6rc1, 2.1.0 |
Type: | Incident report | Priority: | Critical |
Reporter: | Alex Moskalenko | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 2 |
Labels: | encoding, interfaces, utf8 | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Windows XP 32bit Russian |
Attachments: |
![]() ![]() ![]() |
Description |
Zabbix Agent 2.0.2rc1 does not encode in UTF8 discovered network interface names. Agent is running on Windows XP 32bit SP3 Russian. Interface names are returned in CP1251 encoding. Created items contains "?" character instead of cyrillic symbols and its are in "unsupported" state. There are output of zabbix_get command below.
$ zabbix_get -s 192.168.0.132 -k "system.uname"
Windows WINXP 5.1.2600 Windows XP Service Pack 3 Intel IA-32
$ zabbix_get -s 192.168.0.132 -k "agent.version"
2.0.2rc1
$ zabbix_get -s 192.168.0.132 -k "net.if.discovery" { "data":[ { "{#IFNAME}":"Xen Net Device Driver - ???????? ???????????? ???????"}, { "{#IFNAME}":"MS TCP Loopback interface"}]} $ zabbix_get -s 192.168.0.132 -k "net.if.discovery" | iconv -f cp1251 { "data":[ { "{#IFNAME}":"Xen Net Device Driver - ???????? ???????????? ???????"}, { "{#IFNAME}":"MS TCP Loopback interface"}]} |
Comments |
Comment by Alex Moskalenko [ 2012 Jul 26 ] |
Fix for net.if.discovery on Windows platform. |
Comment by Oleksii Zagorskyi [ 2012 Aug 06 ] |
Corresponding forum threads (in Russian): there are other similar threads as well. |
Comment by Alexander Vladishev [ 2012 Aug 08 ] |
Fixed in the development branch svn://svn.zabbix.com/branches/dev/ZBX-5358 |
Comment by dimir [ 2012 Aug 08 ] |
Successfully tested! |
Comment by Alex Moskalenko [ 2012 Aug 08 ] |
Maybe this issue is more complicated because Windows 2008 R2 x64 returns pIfRow.bDescr in OEM (CP866 in my case) encoding. Is there a universal solution that works on all actual Windows versions? |
Comment by Alexander Vladishev [ 2012 Aug 08 ] |
Whether there are Windows versions which return pIfRow.bDescr not in the OEM encoding? |
Comment by Alexander Vladishev [ 2012 Aug 08 ] |
Fixed in pre-2.0.3 r29472 and pre-2.1.0 r29473. |
Comment by Alex Moskalenko [ 2012 Aug 08 ] |
Windows XP 32Bit Rus returns pIfRow.bDescr in cp1251 encoding. In Windows 2008R2 Rus+2.0.2 agent net.if.discovery returns cp866 in fact, and net.if.list returns unreadable string as result of conversion CP866-encoded string with zbx_acp_to_unicode, which expects ANSI string. |
Comment by Alex Moskalenko [ 2012 Aug 08 ] |
Output from Windows 2008 R2:
> zabbix_get -s server -k "system.uname"
Windows SERVER 6.1.7601 Windows Server 2008 Service Pack 1 AMD-64
> zabbix_get -s server -k "agent.version" 2.0.2 zabbix_get -s server -k "net.if.list" Ethernet enabled - WAN Miniport (IPv6) Ethernet enabled - WAN Miniport (Network Monitor) Ethernet enabled - Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000 Ethernet enabled - Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000 Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа-QoS Packet Scheduler-0000 Ethernet unknown - Ђ¤ ЇвҐа D-Link DFE-520TX PCI Fast Ethernet Ethernet enabled - WAN Miniport (IP) Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа-WFP LightWeight Filter-0000 Ethernet enabled - WAN Miniport (IPv6)-QoS Packet Scheduler-0000 Ethernet enabled 192.168.0.200 Realtek PCIe GBE Family Controller Ethernet enabled 192.168.23.5 Realtek RTL8139/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа Ethernet enabled - WAN Miniport (IP)-QoS Packet Scheduler-0000 Ethernet enabled - WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000 PPP enabled - WAN Miniport (PPPOE) PPP enabled - RAS Async Adapter Software Loopback enabled 127.0.0.1 Software Loopback Interface 1 Tunnel type encapsulation enabled - WAN Miniport (SSTP) Tunnel type encapsulation enabled - WAN Miniport (IKEv2) Tunnel type encapsulation enabled - WAN Miniport (L2TP) Tunnel type encapsulation enabled - WAN Miniport (PPTP) Tunnel type encapsulation enabled - Ђ¤ ЇвҐа Microsoft ISATAP Tunnel type encapsulation enabled - Ђ¤ ЇвҐа Microsoft ISATAP #2 Tunnel type encapsulation enabled - Teredo Tunneling Pseudo-Interface > zabbix_get -s server -k "net.if.discovery" | iconv -f cp866 { "data":[ { "{#IFNAME}":"WAN Miniport (IPv6)"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Адаптер D-Link DFE-520TX PCI Fast Ethernet"}, { "{#IFNAME}":"WAN Miniport (IP)"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"WAN Miniport (IPv6)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер"}, { "{#IFNAME}":"WAN Miniport (IP)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (PPPOE)"}, { "{#IFNAME}":"RAS Async Adapter"}, { "{#IFNAME}":"Software Loopback Interface 1"}, { "{#IFNAME}":"WAN Miniport (SSTP)"}, { "{#IFNAME}":"WAN Miniport (IKEv2)"}, { "{#IFNAME}":"WAN Miniport (L2TP)"}, { "{#IFNAME}":"WAN Miniport (PPTP)"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP #2"}, { "{#IFNAME}":"Teredo Tunneling Pseudo-Interface"}]} |
Comment by Alex Moskalenko [ 2012 Aug 08 ] |
Output from Windows XP (with patched NET_IF_DISCOVERY):
> zabbix_get -s ws -k "agent.version"
2.0.2rc1
> zabbix_get -s ws -k "system.uname"
Windows WS 5.1.2600 Windows XP Service Pack 3 Intel IA-32
> zabbix_get -s ws -k "net.if.list" Ethernet enabled 192.168.3.137 Xen Net Device Driver - Минипорт планировщика пакетов Software Loopback enabled 127.0.0.1 MS TCP Loopback interface > zabbix_get -s ws -k "net.if.discovery" { "data":[ { "{#IFNAME}":"Xen Net Device Driver - Минипорт планировщика пакетов"}, { "{#IFNAME}":"MS TCP Loopback interface"}]} |
Comment by Alexander Vladishev [ 2012 Aug 08 ] |
We tested it for Win XP RUS 32-bit with cp1251. Works as expected. |
Comment by Alexander Vladishev [ 2012 Aug 08 ] |
Ok, I reopen the issue. |
Comment by Oleksii Zagorskyi [ 2012 Aug 08 ] |
My last comment (in Russian) in a |
Comment by Alex Moskalenko [ 2012 Aug 09 ] |
Let's me provide cleaner example about Windows 2008. There is output of zabbix_get from win2008 on Linux with UTF-8 locale:
> zabbix_get -s server -k "net.if.list" | iconv -f utf8 -t utf-16le | iconv -f utf-16le -t cp1251 | iconv -f cp866
Ethernet enabled - WAN Miniport (IPv6)
Ethernet enabled - WAN Miniport (Network Monitor)
Ethernet enabled - Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000
Ethernet enabled - Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000
Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер-QoS Packet Scheduler-0000
Ethernet unknown - Адаптер D-Link DFE-520TX PCI Fast Ethernet
Ethernet enabled - WAN Miniport (IP)
Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер-WFP LightWeight Filter-0000
Ethernet enabled - WAN Miniport (IPv6)-QoS Packet Scheduler-0000
Ethernet enabled 192.168.0.200 Realtek PCIe GBE Family Controller
Ethernet enabled 192.168.23.5 Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер
Ethernet enabled - WAN Miniport (IP)-QoS Packet Scheduler-0000
Ethernet enabled - WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000
PPP enabled - WAN Miniport (PPPOE)
PPP enabled - RAS Async Adapter
Software Loopback enabled 127.0.0.1 Software Loopback Interface 1
Tunnel type encapsulation enabled - WAN Miniport (SSTP)
Tunnel type encapsulation enabled - WAN Miniport (IKEv2)
Tunnel type encapsulation enabled - WAN Miniport (L2TP)
Tunnel type encapsulation enabled - WAN Miniport (PPTP)
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP #2
Tunnel type encapsulation enabled - Teredo Tunneling Pseudo-Interface
First iconv (from utb8 to utf16le) undoes zbx_unicode_to_utf8. Second iconv (from utf16le to cp1251) undoes zbx_acp_to_unicode. After this we get original strings, as its returned by Windows. And, as you see, encoding is cp866. Third iconv (from cp866 to utf8) shows this. On Windows XP Windows returns strings in 1251 encoding and zabbix_agent works as expected. In my opinion, we need to open another issue about Win2008 behavior. |
Comment by Oleksii Zagorskyi [ 2013 Jan 16 ] |
More and more people have problems with this. Priority bumped to Critical. |
Comment by Andris Zeila [ 2013 Jan 17 ] |
After some digging I found the following post on java mailing list:
Unfortunately he did not confirm if Windows XP is using CP_ACP. However But the GetIfTable2 function is supported only in Windows Vista+, |
Comment by Andris Zeila [ 2013 Jan 17 ] |
Created preliminary fix at svn://svn.zabbix.com/branches/dev/ZBX-5358 I can't currently test it as we don't have required environment |
Comment by Oleksii Zagorskyi [ 2013 Jan 18 ] |
I compiled agent from the dev branch. Compilation platform: WinXP x32, VS10. Tested platform is Server R2 x64 RUS: Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Program Files (x86)\Zabbix Agent>zabbix_agentd.exe -V Zabbix Agent Win32 (service) v2.1.0 (revision 32871) (21 May 2012) Compilation time: Jan 18 2013 01:36:49 Debuglog from the tested agent: 1864:20130118:015536.405 Starting Zabbix Agent [2008server]. Zabbix 2.1.0 (revision 32871). 1864:20130118:015536.405 In init_collector_data() 1864:20130118:015536.405 End of init_collector_data() 1864:20130118:015536.405 In init_perf_collector() 1864:20130118:015536.405 End of init_perf_collector():SUCCEED 2260:20130118:015536.405 agent #0 started [collector] 2948:20130118:015536.405 agent #1 started [listener] 792:20130118:015536.405 agent #2 started [listener] 2732:20130118:015536.405 agent #4 started [listener] 2924:20130118:015536.405 agent #6 started [active checks] 2260:20130118:015536.405 In init_cpu_collector() 2612:20130118:015536.405 agent #5 started [listener] 1684:20130118:015536.405 agent #3 started [listener] ... 2612:20130118:015546.873 Requested [net.if.discovery] 2612:20130118:015547.060 Sending back [{ "data":[ { "{#IFNAME}":"WAN Miniport (IPv6)"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)"}, { "{#IFNAME}":"Realtek RTL8139C+ Fast Ethernet "}, { "{#IFNAME}":"WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (IP)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek RTL8139C+ Fast Ethernet "}, { "{#IFNAME}":"WAN Miniport (IP)"}, { "{#IFNAME}":"WAN Miniport (IPv6)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"VirtualBox Host-Only Ethernet Adapter-QoS Packet Scheduler-0000"}, { "{#IFNAME}":""}, { "{#IFNAME}":"VirtualBox Host-Only Ethernet Adapter-WFP LightWeight Filter-0000"}, { "{#IFNAME}":""}, { "{#IFNAME}":""}, { "{#IFNAME}":""}, { "{#IFNAME}":"VirtualBox Host-Only Ethernet Adapter"}, { "{#IFNAME}":"Realtek RTL8139C+ Fast Ethernet "}, { "{#IFNAME}":"Realtek RTL8139C+ Fast Ethernet "}, { "{#IFNAME}":"WAN Miniport (PPPOE)"}, { "{#IFNAME}":"RAS Async Adapter"}, { "{#IFNAME}":"Software Loopback Interface 1"}, { "{#IFNAME}":"WAN Miniport (SSTP)"}, { "{#IFNAME}":"WAN Miniport (IKEv2)"}, { "{#IFNAME}":"WAN Miniport (L2TP)"}, { "{#IFNAME}":"WAN Miniport (PPTP)"}, { "{#IFNAME}":""}, { "{#IFNAME}":"Teredo Tunneling Pseudo-Interface"}, { "{#IFNAME}":""}, { "{#IFNAME}":""}]}] So my conclusion - the fix in the dev branch didn't help. I can confirm that it did NOT break (as Andris said above) the network interface names on Russian Windows XP. |
Comment by Andris Zeila [ 2013 Jan 18 ] |
Could you please try the attached agent? It's built on 2.0 branch with the encoding fixes patched in. zalex_ua I've just tried it, didn't help. All the same. wiper Thanks, will try to find windows vista rus or something for debugging to see what's happening. |
Comment by Alex Moskalenko [ 2013 Jan 18 ] |
Attached Agent (2.0.5rc1) works correctly on Win 2008 Server Rus. Here is results: > zabbix_get -s server -k agent.version 2.0.5rc1 > zabbix_get -s server -k system.uname Windows SERVER 6.1.7601 Microsoft Windows Server 2008 R2 Standard Edition Service Pack 1 x64
> zabbix_get -s server -k net.if.list
Ethernet enabled - WAN Miniport (IPv6)
Ethernet enabled - WAN Miniport (Network Monitor)
Ethernet enabled - Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000
Ethernet enabled - Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000
Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер-QoS Packet Scheduler-0000
Ethernet unknown - Адаптер D-Link DFE-520TX PCI Fast Ethernet
Ethernet enabled - WAN Miniport (IP)
Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер-WFP LightWeight Filter-0000
Ethernet enabled - WAN Miniport (IPv6)-QoS Packet Scheduler-0000
Ethernet enabled 192.168.0.1 Realtek PCIe GBE Family Controller
Ethernet enabled 192.168.1.1 Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер
Ethernet enabled - WAN Miniport (IP)-QoS Packet Scheduler-0000
Ethernet enabled - WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000
PPP enabled - WAN Miniport (PPPOE)
PPP enabled - RAS Async Adapter
Software Loopback enabled 127.0.0.1 Software Loopback Interface 1
Tunnel type encapsulation enabled - WAN Miniport (SSTP)
Tunnel type encapsulation enabled - WAN Miniport (IKEv2)
Tunnel type encapsulation enabled - WAN Miniport (L2TP)
Tunnel type encapsulation enabled - WAN Miniport (PPTP)
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP #2
Tunnel type encapsulation enabled - Teredo Tunneling Pseudo-Interface
> zabbix_get -s server -k net.if.discovery { "data":[ { "{#IFNAME}":"WAN Miniport (IPv6)"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Адаптер D-Link DFE-520TX PCI Fast Ethernet"}, { "{#IFNAME}":"WAN Miniport (IP)"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"WAN Miniport (IPv6)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер"}, { "{#IFNAME}":"WAN Miniport (IP)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (PPPOE)"}, { "{#IFNAME}":"RAS Async Adapter"}, { "{#IFNAME}":"Software Loopback Interface 1"}, { "{#IFNAME}":"WAN Miniport (SSTP)"}, { "{#IFNAME}":"WAN Miniport (IKEv2)"}, { "{#IFNAME}":"WAN Miniport (L2TP)"}, { "{#IFNAME}":"WAN Miniport (PPTP)"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP #2"}, { "{#IFNAME}":"Teredo Tunneling Pseudo-Interface"}]} |
Comment by Andris Zeila [ 2013 Jan 18 ] |
So apparently the problem still persists on Win 2008 Server Rus x64 while working properly on 32bit. Interesting. |
Comment by Alex Moskalenko [ 2013 Jan 18 ] |
It is 32bit agent on 64bit Windows. Can you provide compiled 64-bit agent? I will test it too on same server. |
Comment by Andris Zeila [ 2013 Jan 21 ] |
x64 version attached. I tested both on Win 7 x64 Rus (that was the closest thing I could get) and it worked fine. |
Comment by Alex Moskalenko [ 2013 Jan 21 ] |
Attached x86_64 agent is working correctly on Win2008 R2 Rus X86_64. > zabbix_get -s server -k agent.version 2.1.0 > zabbix_get -s server -k system.uname Windows SERVER 6.1.7601 Microsoft Windows Server 2008 R2 Standard Edition Service Pack 1 x64
> zabbix_get -s server -k net.if.list
Ethernet enabled - WAN Miniport (IPv6)
Ethernet enabled - WAN Miniport (Network Monitor)
Ethernet enabled - Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000
Ethernet enabled - Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000
Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер-QoS Packet Scheduler-0000
Ethernet unknown - Адаптер D-Link DFE-520TX PCI Fast Ethernet
Ethernet enabled - WAN Miniport (IP)
Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер-WFP LightWeight Filter-0000
Ethernet enabled - WAN Miniport (IPv6)-QoS Packet Scheduler-0000
Ethernet enabled 192.168.0.1 Realtek PCIe GBE Family Controller
Ethernet enabled 192.168.1.1 Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер
Ethernet enabled - WAN Miniport (IP)-QoS Packet Scheduler-0000
Ethernet enabled - WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000
PPP enabled - WAN Miniport (PPPOE)
PPP enabled - RAS Async Adapter
Software Loopback enabled 127.0.0.1 Software Loopback Interface 1
Tunnel type encapsulation enabled - WAN Miniport (SSTP)
Tunnel type encapsulation enabled - WAN Miniport (IKEv2)
Tunnel type encapsulation enabled - WAN Miniport (L2TP)
Tunnel type encapsulation enabled - WAN Miniport (PPTP)
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP #2
Tunnel type encapsulation enabled - Teredo Tunneling Pseudo-Interface
> zabbix_get -s server -k net.if.discovery { "data":[ { "{#IFNAME}":"WAN Miniport (IPv6)"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Адаптер D-Link DFE-520TX PCI Fast Ethernet"}, { "{#IFNAME}":"WAN Miniport (IP)"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"WAN Miniport (IPv6)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер"}, { "{#IFNAME}":"WAN Miniport (IP)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (PPPOE)"}, { "{#IFNAME}":"RAS Async Adapter"}, { "{#IFNAME}":"Software Loopback Interface 1"}, { "{#IFNAME}":"WAN Miniport (SSTP)"}, { "{#IFNAME}":"WAN Miniport (IKEv2)"}, { "{#IFNAME}":"WAN Miniport (L2TP)"}, { "{#IFNAME}":"WAN Miniport (PPTP)"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP #2"}, { "{#IFNAME}":"Teredo Tunneling Pseudo-Interface"}]} |
Comment by Andris Zeila [ 2013 Jan 21 ] |
Great, thanks! Fixed in development branch |
Comment by Oleksii Zagorskyi [ 2013 Jan 21 ] |
Heh, there is something interesting. # zabbix_get -s 10.20.0.62 -k system.uname Windows WIN-SERV2008-I6 6.1.7600 Microsoft Windows Server 2008 R2 Standard Edition x64 But I've just tried they all (my own compiled x32, and both Andris' (x32, x64)) on another Windows 7 x64 host ! # zabbix_get -s 10.20.1.16 -k system.uname Windows ULTRAI7 6.1.7601 Microsoft Windows 7 Home Premium Edition Service Pack 1 x64 Only now I noticed that there is "Service Pack 1" for my Win7 host and for Alex's as well. Probably I'll try to install SP1 on that Server2008 host to check is there any difference. Btw, to test zabbix_agentd without starting as a service there is an approach: open CMD, run "chcp 65001", open CMD's window properties and select a "Lucida Console" font on Font tab, press ok, execute "zabbix_agentd -t net.if.list" In currently tested agents you should see correct Cyrillic ! |
Comment by Oleksii Zagorskyi [ 2013 Jan 21 ] |
Woohooo, IT WORKS ! I've just installed SP1 over the Server2008 host (x64) and it solved the problem. NOW: # zabbix_get -s 10.20.0.62 -k system.uname Windows WIN-SERV2008-I6 6.1.7601 Microsoft Windows Server 2008 R2 Standard Edition Service Pack 1 x64
# zabbix_get -s 10.20.0.62 -k net.if.list
Ethernet enabled - WAN Miniport (IPv6)
Ethernet enabled - WAN Miniport (Network Monitor)
Ethernet enabled - Realtek RTL8139C+ Fast Ethernet сетевой адаптер - VirtualBox Bridged Networking Driver Miniport
Ethernet enabled - WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000
Ethernet enabled - WAN Miniport (IP)-QoS Packet Scheduler-0000
Ethernet enabled 10.20.0.71 Realtek RTL8139C+ Fast Ethernet сетевой адаптер
Ethernet enabled - WAN Miniport (IP)
Ethernet enabled - WAN Miniport (IPv6)-QoS Packet Scheduler-0000
Ethernet enabled - VirtualBox Host-Only Ethernet Adapter-QoS Packet Scheduler-0000
Ethernet enabled 10.20.0.62 Сетевое подключение Intel(R) PRO/1000 MT
Ethernet enabled - VirtualBox Host-Only Ethernet Adapter-WFP LightWeight Filter-0000
Ethernet enabled - Сетевое подключение Intel(R) PRO/1000 MT - VirtualBox Bridged Networking Driver Miniport
Ethernet enabled - Сетевое подключение Intel(R) PRO/1000 MT - VirtualBox Bridged Networking Driver Miniport-QoS Packet Scheduler-0000
Ethernet enabled - Сетевое подключение Intel(R) PRO/1000 MT - VirtualBox Bridged Networking Driver Miniport-WFP LightWeight Filter-0000
Ethernet enabled 192.168.56.1 VirtualBox Host-Only Ethernet Adapter
Ethernet enabled - Realtek RTL8139C+ Fast Ethernet сетевой адаптер - VirtualBox Bridged Networking Driver Miniport-QoS Packet Scheduler-0000
Ethernet enabled - Realtek RTL8139C+ Fast Ethernet сетевой адаптер - VirtualBox Bridged Networking Driver Miniport-WFP LightWeight Filter-0000
PPP enabled - WAN Miniport (PPPOE)
PPP unknown - RAS Async Adapter
Software Loopback enabled 127.0.0.1 Software Loopback Interface 1
Tunnel type encapsulation enabled - WAN Miniport (SSTP)
Tunnel type encapsulation enabled - WAN Miniport (IKEv2)
Tunnel type encapsulation enabled - WAN Miniport (L2TP)
Tunnel type encapsulation enabled - WAN Miniport (PPTP)
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP
Tunnel type encapsulation enabled - Teredo Tunneling Pseudo-Interface
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP #2
Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP #3
# zabbix_get -s 10.20.0.62 -k net.if.discovery { "data":[ { "{#IFNAME}":"WAN Miniport (IPv6)"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)"}, { "{#IFNAME}":"Realtek RTL8139C+ Fast Ethernet сетевой адаптер - VirtualBox Bridged Networking Driver Miniport"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (IP)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek RTL8139C+ Fast Ethernet сетевой адаптер"}, { "{#IFNAME}":"WAN Miniport (IP)"}, { "{#IFNAME}":"WAN Miniport (IPv6)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"VirtualBox Host-Only Ethernet Adapter-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Сетевое подключение Intel(R) PRO\/1000 MT"}, { "{#IFNAME}":"VirtualBox Host-Only Ethernet Adapter-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"Сетевое подключение Intel(R) PRO\/1000 MT - VirtualBox Bridged Networking Driver Miniport"}, { "{#IFNAME}":"Сетевое подключение Intel(R) PRO\/1000 MT - VirtualBox Bridged Networking Driver Miniport-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Сетевое подключение Intel(R) PRO\/1000 MT - VirtualBox Bridged Networking Driver Miniport-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"VirtualBox Host-Only Ethernet Adapter"}, { "{#IFNAME}":"Realtek RTL8139C+ Fast Ethernet сетевой адаптер - VirtualBox Bridged Networking Driver Miniport-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek RTL8139C+ Fast Ethernet сетевой адаптер - VirtualBox Bridged Networking Driver Miniport-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"WAN Miniport (PPPOE)"}, { "{#IFNAME}":"RAS Async Adapter"}, { "{#IFNAME}":"Software Loopback Interface 1"}, { "{#IFNAME}":"WAN Miniport (SSTP)"}, { "{#IFNAME}":"WAN Miniport (IKEv2)"}, { "{#IFNAME}":"WAN Miniport (L2TP)"}, { "{#IFNAME}":"WAN Miniport (PPTP)"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP"}, { "{#IFNAME}":"Teredo Tunneling Pseudo-Interface"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP #2"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP #3"}]} |
Comment by Oleksii Zagorskyi [ 2013 Jan 21 ] |
(1) Documentation The detail about required SP1 (KB976932) for Server 2008/Windows 7 should be somehow added to documentation. I'm not sure that SP1 is 100% required, but at least this confirmed for one host. Actually need to bee crazy to still not have SP1 installed, in production wiper Windows update requirement mentioned in:
RESOLVED, please review. asaveljevs In all of the pages above, changed "2008 server" to "for example, Server 2008", and also added these notes to:
Please take a look. RESOLVED. wiper Thanks, CLOSED |
Comment by dimir [ 2013 Feb 11 ] |
Successfully tested. Please review my small change in r33527 . |
Comment by Andris Zeila [ 2013 Feb 12 ] |
Fixed in: |
Comment by Oleksii Zagorskyi [ 2013 Feb 12 ] |
Subissue (1) not closed (and unanswered ) ! Should we reopen this issue ? |
Comment by richlv [ 2013 Feb 12 ] |
reopening as per zalex's comment |
Comment by Alex Moskalenko [ 2013 Feb 14 ] |
In my environment zabbix agent 2.0.5 x64 (from official tarball) does not work. Agent 2.0.5 x64 on Windows 2008R2 SP1 zabbix_get -s server -k system.uname Windows SERVER 6.1.7601 Microsoft Windows Server 2008 R2 Standard Edition Service Pack 1 x64 zabbix_get -s server -k agent.version 2.0.5 zabbix_get -s server -k net.if.list Ethernet enabled - WAN Miniport (IPv6) Ethernet enabled - WAN Miniport (Network Monitor) Ethernet enabled - Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000 Ethernet enabled - Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000 Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа-QoS Packet Scheduler-0000 Ethernet unknown - Ђ¤ ЇвҐа D-Link DFE-520TX PCI Fast Ethernet Ethernet enabled - WAN Miniport (IP) Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа-WFP LightWeight Filter-0000 Ethernet enabled - WAN Miniport (IPv6)-QoS Packet Scheduler-0000 Ethernet enabled 192.168.0.2 Realtek PCIe GBE Family Controller Ethernet enabled 192.168.1.5 Realtek RTL8139/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа Ethernet enabled - WAN Miniport (IP)-QoS Packet Scheduler-0000 Ethernet enabled - WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000 PPP enabled - WAN Miniport (PPPOE) PPP enabled - RAS Async Adapter Software Loopback enabled 127.0.0.1 Software Loopback Interface 1 Tunnel type encapsulation enabled - WAN Miniport (SSTP) Tunnel type encapsulation enabled - WAN Miniport (IKEv2) Tunnel type encapsulation enabled - WAN Miniport (L2TP) Tunnel type encapsulation enabled - WAN Miniport (PPTP) Tunnel type encapsulation enabled - Ђ¤ ЇвҐа Microsoft ISATAP Tunnel type encapsulation enabled - Ђ¤ ЇвҐа Microsoft ISATAP #2 Tunnel type encapsulation enabled - Teredo Tunneling Pseudo-Interface zabbix_get -s server -k net.if.discovery { "data":[ { "{#IFNAME}":"WAN Miniport (IPv6)"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Ђ¤ ЇвҐа D-Link DFE-520TX PCI Fast Ethernet"}, { "{#IFNAME}":"WAN Miniport (IP)"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"WAN Miniport (IPv6)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet бҐвҐў®© ¤ ЇвҐа"}, { "{#IFNAME}":"WAN Miniport (IP)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (PPPOE)"}, { "{#IFNAME}":"RAS Async Adapter"}, { "{#IFNAME}":"Software Loopback Interface 1"}, { "{#IFNAME}":"WAN Miniport (SSTP)"}, { "{#IFNAME}":"WAN Miniport (IKEv2)"}, { "{#IFNAME}":"WAN Miniport (L2TP)"}, { "{#IFNAME}":"WAN Miniport (PPTP)"}, { "{#IFNAME}":"Ђ¤ ЇвҐа Microsoft ISATAP"}, { "{#IFNAME}":"Ђ¤ ЇвҐа Microsoft ISATAP #2"}, { "{#IFNAME}":"Teredo Tunneling Pseudo-Interface"}]} Agent from this thread attachment #21366 works correctly. Agent from attachment #21366 output zabbix_get -s server -k system.uname Windows SERVER 6.1.7601 Microsoft Windows Server 2008 R2 Standard Edition Service Pack 1 x64 zabbix_get -s server -k agent.version 2.1.0 zabbix_get -s server -k net.if.list Ethernet enabled - WAN Miniport (IPv6) Ethernet enabled - WAN Miniport (Network Monitor) Ethernet enabled - Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000 Ethernet enabled - Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000 Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер-QoS Packet Scheduler-0000 Ethernet unknown - Адаптер D-Link DFE-520TX PCI Fast Ethernet Ethernet enabled - WAN Miniport (IP) Ethernet enabled - Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер-WFP LightWeight Filter-0000 Ethernet enabled - WAN Miniport (IPv6)-QoS Packet Scheduler-0000 Ethernet enabled 192.168.0.2 Realtek PCIe GBE Family Controller Ethernet enabled 192.168.1.1 Realtek RTL8139/810x Family Fast Ethernet сетевой адаптер Ethernet enabled - WAN Miniport (IP)-QoS Packet Scheduler-0000 Ethernet enabled - WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000 PPP enabled - WAN Miniport (PPPOE) PPP enabled - RAS Async Adapter Software Loopback enabled 127.0.0.1 Software Loopback Interface 1 Tunnel type encapsulation enabled - WAN Miniport (SSTP) Tunnel type encapsulation enabled - WAN Miniport (IKEv2) Tunnel type encapsulation enabled - WAN Miniport (L2TP) Tunnel type encapsulation enabled - WAN Miniport (PPTP) Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP Tunnel type encapsulation enabled - Адаптер Microsoft ISATAP #2 Tunnel type encapsulation enabled - Teredo Tunneling Pseudo-Interface zabbix_get -s server -k net.if.discovery { "data":[ { "{#IFNAME}":"WAN Miniport (IPv6)"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Адаптер D-Link DFE-520TX PCI Fast Ethernet"}, { "{#IFNAME}":"WAN Miniport (IP)"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер-WFP LightWeight Filter-0000"}, { "{#IFNAME}":"WAN Miniport (IPv6)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"Realtek PCIe GBE Family Controller"}, { "{#IFNAME}":"Realtek RTL8139\/810x Family Fast Ethernet сетевой адаптер"}, { "{#IFNAME}":"WAN Miniport (IP)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000"}, { "{#IFNAME}":"WAN Miniport (PPPOE)"}, { "{#IFNAME}":"RAS Async Adapter"}, { "{#IFNAME}":"Software Loopback Interface 1"}, { "{#IFNAME}":"WAN Miniport (SSTP)"}, { "{#IFNAME}":"WAN Miniport (IKEv2)"}, { "{#IFNAME}":"WAN Miniport (L2TP)"}, { "{#IFNAME}":"WAN Miniport (PPTP)"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP"}, { "{#IFNAME}":"Адаптер Microsoft ISATAP #2"}, { "{#IFNAME}":"Teredo Tunneling Pseudo-Interface"}]} |
Comment by Andris Zeila [ 2013 Feb 14 ] |
Yes, it was not released with 2.0.5
|