Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The Chinese method of Zabbix and the solution of garbled code

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Zabbix defaults to the English interface, and many friends who are not good at English may not be used to it. Here's how to use it in Chinese, which is actually very simple:

# Click Chinese (zh_CN) here

After Sinicization is completed, there may be two kinds of garbled codes:

1. The historical record office appears. Garbled code:

Cause of occurrence:

The default character set of mysql database is latin1, while zabbix needs to use utf8. No specific character set is specified when initializing the creation of zabbix library. When three tables are poured in, the default character set of Mysql will be inherited, so garbled code will occur here.

Solution:

1. Back up the tables in the zabbix database

2. Delete zabbix database manually

3. Manually specify the character set as utf8 when recreating the zabbix library

4. Replace the table character set with latin1 in the inverted sql file with utf8.

5. Just pour the backed-up zabbix library back into it.

At this point, revisit the zabbix web page, click the menu a few times, and everything is fine in the history.

2. The box appears under the menu of graphs and Green:

Cause of occurrence:

Since there is no Chinese font on the web side of zabbix, we need to add the Chinese font.

Solution:

Download Chinese fonts:

Wget http://down1.chinaunix.net/distfiles/ttf-arphic-uming_0.0.20050501-1.tar.gz tar xf / root/ttf-arphic-uming_0.0.20050501-1.tar.gz cd / usr/local/apache/htdocs/zabbix/fonts # # Note here back up the original font file cp / root/ttf-arphic-uming_0.0.20050501/ for the path mv DejaVuSans.ttf / root/ # # where the zabbix web file is located Uming.ttf. / DejaVusans.ttf # replaces the downloaded font here

Everything is fine:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report