[ZBXNEXT-3128] Support for Unicode characters in arguments for Windows' zabbix_get, zabbix_sender Created: 2016 Feb 02  Updated: 2016 Feb 02

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: None
Affects Version/s: 3.0.0beta2
Fix Version/s: None

Type: Change Request Priority: Major
Reporter: Sandis Neilands (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: encoding, utf8, windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows



 Description   

Protocols that are used between Zabbix components are UTF-8 based. However for Windows version of zabbix_get, zabbix_sender no conversion to UTF-8 is done for the command line parameters.

For example, one can query Windows agent from Unix with the following command.

$ ./zabbix_get -s 192.168.3.227 -k "wmi.get[root\cimv2,select Caption from Win32_OperatingSystem where Caption like '%Édition%']"
Microsoft Windows 7 Édition Familiale Premium 

Equivavlent command doesn't work either from PowerShell or cmd.exe.

PS E:\> .\zabbix_get.exe -s 127.0.0.1 -k "wmi.get[root\cimv2,select Caption from Win32_OperatingSystem where Caption like '%Édition%']"
ZBX_NOTSUPPORTED: Cannot obtain WMI information.

We should check how to solve this. One of the possibilities is to change main() to wmain() and then convert arguments from UTF-16 to UTF-8.


Generated at Fri Apr 19 18:08:02 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.