[ZBX-22651] zabbix graphics display Chinese garbled characters Created: 2023 Apr 11 Updated: 2023 Apr 14 |
|
Status: | Need info |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 6.4.1 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Aaron Willison | Assignee: | Oleksii Zagorskyi |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Centos 7.9 |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() |
Description |
1. install zabbix --prefix=/usr/local/zabbix \ --enable-server \ --enable-agent \ --enable-agent2 \ --enable-java \ --enable-webservice \ --with-ssh2 \ --with-libcurl \ --with-libevent \ --with-libpcre \ --with-net-snmp \ --with-openssl=/opt/related/zabbix/openssl-1.1.1t \ --with-mysql=/usr/local/mysql/bin/mysql_config \ --with-openipmi=/opt/related/zabbix/OpenIPMI-2.0.32 \ --with-libxml2=/opt/related/php/libxml2-2.9.12/lib/pkgconfig
2. Create zabbix MySQL database mysql -uroot -p<password> mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; mysql> create user 'zabbix'@'localhost' identified by '<password>'; mysql> grant all privileges on zabbix. to 'zabbix'@'localhost';* mysql> SET GLOBAL log_bin_trust_function_creators = 1; mysql> quit;
3. my.cnf configures the default character set [mysqld] character_set_server = UTF8MB4*
4. Upload windows local fonts to zabbix (1). Font files are uploaded to the /zabbix/assets/fonts/ directory (2). Set the file attribute to the web server user and group, and upload the font file to 644 (3). Modify the /zabbix/include/defines.inc.php file Modify line 89 define('ZBX_GRAPH_FONT_NAME', '$fonts'); Modify line 147 define('ZBX_FONT_NAME', '$Fonts');
5. modified result 6. Desired result
|
Comments |
Comment by Oleksii Zagorskyi [ 2023 Apr 13 ] |
What OS/version is used to host zabbix WEB interface? Why you ever needed to "Upload windows local fonts to zabbix" ? You do not have to use any installation procedure which assumes to edit defines.inc.php file. |
Comment by Aaron Willison [ 2023 Apr 14 ] |
The operating system version used by the web interface is windows 10 pro 21H2 (x64), the browser is Google Chrome (64-bit), and the version is 111.0.5563.147.
Answer the second and third questions together Uploading windwos local fonts is to solve the font localization of zabbix chart parameters,This operation is supported in version 6.2.1 or historical versions, but currently 6.4.1 does not support it!
English is used by default, and the zabbix chart font is displayed normally.
Set the default font of zabbix to Chinese, and the font of the chart parameters will be garbled. defines.inc.php file default settings
|