Linux base-zabbix solve Chinese garbled problem (because the version is too new, no test succeeded)

Source: Internet
Author: User
Tags fully qualified domain name

Zabbix solve Chinese garbled problem

1, in the Windows system to find a favorite font, here we use: Msyh.ttf

2. Upload fonts to the/var/www/html/zabbix/fonts directory

[Email protected] ~]# cd/var/www/html/zabbix/fonts/

[[email protected] fonts]# rz-y
rz waiting to receive.
??? A? Zmodem′??? £°′ctrl+c??? £
?? ′?? Msyh.ttf ...
100% 21257 KB 21257 kb/s 00:00:01 0′?

[email protected] fonts]# LL
Total dosage 21260
lrwxrwxrwx 1 root root 33 November 08:53 Graphfont.ttf-/etc/alternatives/zabbix-web-font
-rw-r--r--1 root root 21767952 October 11:31 Msyh.ttf

3, modify the Zabbix page management of the Chinese font settings
[Email protected] include]# Cd/var/www/html/zabbix/include

#修改前先备份
[email protected] include]# CP defines.inc.php defines.inc.php.backup.linuge.2016-11-20

#修改代码
[Email protected] include]# vi/var/www/html/zabbix/include/defines.inc.php #修改以下两行
Define (' Zbx_font_name ', ' msyh ');
Define (' Zbx_graph_font_name ', ' msyh ');

[Email protected] include]#/etc/init.d/httpd restart

Stop httpd:[OK]
Starting Httpd:httpd:apr_sockaddr_info_get () failed for Zabbix-server
Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0.1 for ServerName

Determine

Erron:

[Email protected] ~]# cd/etc/httpd/conf

[email protected] conf]# CP httpd.conf Httpd.conf.backup


[email protected] conf]# LL
Total Dosage 88
-rw-r--r--1 root root 34419 July 19:00 httpd.conf
-rw-r--r--1 root root 34419 November 17:34 httpd.conf.backup
-rw-r--r--1 root root 13139 July 23:24 Magic


[Email protected] conf]# VI httpd.conf

#ServerName www.example.com:80
ServerName 127.0.0.1:80 #增加一行写上这行参数

#再重启httpd服务, it's settled!

[Email protected] conf]#/etc/init.d/httpd restart
Stop httpd:[OK]
Starting httpd:[OK]

#重启相关服务
[Email protected] include]#/etc/init.d/zabbix-server restart
Shutting down Zabbix server: [OK]
Starting Zabbix server: [OK]

#这步可以不操作
[Email protected] include]#/etc/init.d/zabbix-agent restart
Shutting down Zabbix agent: [OK]
Starting Zabbix agent: [OK]

#访问网站
http://192.168.30.132/zabbix/index.php

Linux base-zabbix solve Chinese garbled problem (because the version is too new, no test succeeded)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.