Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22651

zabbix graphics display Chinese garbled characters

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.4.1
    • Agent (G)
    • None
    • Centos 7.9

      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

       

       

            zalex_ua Oleksii Zagorskyi
            AaronWillison Aaron Willison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: