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

Zabbix4.0 changed the host name to Chinese

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

First, let the zabbix4.0 hostname support Chinese

1. Modify the 1095 line (zabbix4.0) in the defines.inc.php file to add Chinese character support

2 、 vim / usr/share/zabbix/include/defines.inc.php

Original:

Define ('ZBX_PREG_INTERNALNAMES',' ([0-9a-zA-Z. -] +)'); / /! Don't forget sync code with C!

After modification

/ /\ x80 -\ xff: matches all Chinese characters and punctuation marks encoded in GBK (GB2312/GB18030)

Define ('ZBX_PREG_INTERNALNAMES',' ([0-9a-zA-Z. \ x {80} -\ x {ff}] +)')

Restart zabbix-server

Systemctl restart zabbix-server

After modification, the host name can be entered in Chinese

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

Servers

Wechat

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

12
Report